def is_model_registered(app_label, model_name):
    try:
        apps.get_registered_model(app_label, model_name)
    except LookupError:
        return False
    else:
        return True
Checks whether a given model is registered. This is used to only
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/core/loading.py/is_model_registered