
def modified_setup_worker_env():
    from core.helpers import import_all_filters, import_all_flags
    import tests.config
    import core.config.config
    import apps
    apps.cache_apps(tests.config.test_apps_path)
    core.config.config.load_app_apis(apps_path=tests.config.test_apps_path)
    core.config.config.flags = import_all_flags(package='tests.util.flagsfilters')
    core.config.config.filters = import_all_filters(package='tests.util.flagsfilters')
    core.config.config.load_flagfilter_apis(tests.config.function_api_path)