def get_by_natural_key(self, app_label, model_name):
        """
        Get a setting model using its app_label and model_name.

        If the app_label.model_name combination is not a valid model, or the
        model is not registered as a setting, returns None.
        """
        try:
            Model = apps.get_model(app_label, model_name)
        except LookupError:
            return None
        if registry not in Model:
            return None
        return Model
dataset/ETHPy150Open torchbox/wagtail/wagtail/contrib/settings/registry.py/Registry.get_by_natural_key/swapped operands of `not in`