def METHOD_NAME(version, toc_path, narrative_docs_path,
                     reference_docs_path):
  """Creates a directory tree containing the docs for the Bazel version.
  Args:
    version: Version of this Bazel release.
    toc_path: Absolute path to the _toc.yaml file that lists the most recent
      Bazel versions.
    narrative_docs_path: Absolute path of an archive that contains the narrative
      documentation (can be .zip or .tar).
    reference_docs_path: Absolute path of an archive that contains the reference
      documentation (can be .zip or .tar).
  Returns:
    The absolute paths of the root of the directory tree and of
      the final _toc.yaml file.
  """
  root_dir = tempfile.mkdtemp()
  versions_dir = os.path.join(root_dir, "versions")
  os.makedirs(versions_dir)
  toc_dest_path = os.path.join(versions_dir, "_toc.yaml")
  shutil.copyfile(toc_path, toc_dest_path)
  release_dir = os.path.join(versions_dir, version)
  os.makedirs(release_dir)
  try_extract(narrative_docs_path, release_dir)
  try_extract(reference_docs_path, release_dir)
  return root_dir, toc_dest_path