def get_models_from_cache(app):
    try:
        from django.apps import apps
        return apps.get_models(app)
    except __HOLE__:
        from django.db.models.loading import cache
        return cache.get_models(app)
dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/compat.py/get_models_from_cache