def METHOD_NAME(
    path_in_repo: Optional[Path] = None,
) -> Path:
    "See `find_buck_cell_root`'s docblock to understand `path_in_repo`"
    repo_root = find_repo_root(path_in_repo=path_in_repo)
    buck_cell_root = find_buck_cell_root(path_in_repo=path_in_repo)
    artifacts_dir = find_artifacts_dir(path_in_repo=path_in_repo)
    # On Facebook infra, the repo might be hosted on an Eden filesystem,
    # which is not intended as a backing store for a large sparse loop
    # device filesystem.  We can utitlize a feature of edenfs called
    # redirections to create a suitable path for us.
    maybe_edenfs = _is_edenfs(repo_root)
    if maybe_edenfs:
        _make_eden_redirection(
            artifacts_dir,
            repo_root,
        )
    else:
        try:
            os.mkdir(artifacts_dir)
        except FileExistsError:
            pass  # We might race with another instance
    _ensure_clean_sh_exists(
        artifacts_dir,
        buck_cell_root,
        is_eden_repo=maybe_edenfs,
    )
    return artifacts_dir