def METHOD_NAME(cls, local_dir: Path, uuid: str, meta: TestFunctionMeta):
    if local_dir.exists():
        with open(Path(local_dir) / "data.pkl", "rb") as f:
            func = pickle.METHOD_NAME(f)
    elif hasattr(sys.modules[meta.module], meta.name):
        func = getattr(sys.modules[meta.module], meta.name)
    else:
        return None
    if inspect.isclass(func) or hasattr(func, "meta"):
        giskard_test = func()
    elif isinstance(func, GiskardTest):
        giskard_test = func
    else:
        giskard_test = GiskardTestMethod(func)
    tests_registry.add_func(meta)
    giskard_test.meta = meta
    return giskard_test