def _test_runnable_in_env(test_name: str, env: TestEnv) -> bool:
    """Whether the test with the given name can run in the given test env."""
    for test_env in _COMPATIBLE_TEST_ENVS[env]:
        if _TEST_ENV_TO_FILTER_METHOD[test_env](test_name):
            return True
    return False
Whether the test with the given name can run in the given test env.
python/aitemplate/testing/test_utils.py