def METHOD_NAME(
    path: str,
) -> Callable[["EnKFMain", "StorageAccessor"], "ErtScript"]:
    module_name = f"ErtScriptModule_{ErtScript.__module_count}"
    ErtScript.__module_count += 1
    spec = importlib.util.spec_from_file_location(module_name, path)
    if spec is None:
        raise ValueError(f"Could not find spec for {module_name}")
    module = importlib.util.module_from_spec(spec)
    if module is None:
        raise ValueError(f"Could not find {module_name} with spec {spec}")
    if spec.loader is None:
        raise ValueError(f"No loader for module {module} with spec {spec}")
    try:
        spec.loader.exec_module(module)
    except (SyntaxError, ImportError) as err:
        raise ValueError(f"ErtScript {path} contains syntax error {err}") from err
    return ErtScript.__findErtScriptImplementations(module)