def app_in_list(self, app_label, apps_list):
        appconfig = django_apps.get_app_config(app_label)
        appconfig_full_name = '{}.{}'.format(
            appconfig.__module__, appconfig.__class__.__name__)
        return (appconfig.name in apps_list) or (appconfig_full_name in apps_list)
Is 'app_label' present in 'apps_list'?
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/routers.py/TenantSyncRouter.app_in_list