code: def _get_paths(
      repo_dir: str, t_dir: Optional[str], tid: str
  ) -> Dict[str, str]:
      if t_dir is not None:
          tutorial_dir = os.path.join(repo_dir, "tutorials", t_dir)
          html_dir = os.path.join(
              repo_dir, "website", "_tutorials", t_dir
          )
          js_dir = os.path.join(
              repo_dir, "website", "pages", "tutorials", t_dir
          )
          py_dir = os.path.join(
              repo_dir, "website", "static", "files", t_dir
          )
  
          for d in [tutorial_dir, html_dir, js_dir, py_dir]:
              os.makedirs(d, exist_ok=True)
  
          tutorial_path = os.path.join(
              tutorial_dir, "{}.ipynb".format(tid)
          )
          html_path = os.path.join(html_dir, "{}.html".format(tid))
          js_path = os.path.join(js_dir, "{}.js".format(tid))
          ipynb_path = os.path.join(py_dir, "{}.ipynb".format(tid))
          py_path = os.path.join(py_dir, "{}.py".format(tid))
      else:
          tutorial_dir = os.path.join(repo_dir, "tutorials")
          tutorial_path = os.path.join(
              repo_dir, "tutorials", "{}.ipynb".format(tid)
          )
          html_path = os.path.join(
              repo_dir, "website", "_tutorials", "{}.html".format(tid)
          )
          js_path = os.path.join(
              repo_dir,
              "website",
              "pages",
              "tutorials",
              "{}.js".format(tid),
          )
          ipynb_path = os.path.join(
              repo_dir,
              "website",
              "static",
              "files",
              "{}.ipynb".format(tid),
          )
          py_path = os.path.join(
              repo_dir,
              "website",
              "static",
              "files",
              "{}.py".format(tid),
          )
  
      paths = {
          "tutorial_dir": tutorial_dir,
          "tutorial_path": tutorial_path,
          "html_path": html_path,
          "js_path": js_path,
          "ipynb_path": ipynb_path,
          "py_path": py_path,
      }
      if t_dir is not None:
          paths["tar_path"] = os.path.join(
              py_dir, "{}.tar.gz".format(tid)
          )
      return paths
  
file_path: Ax/scripts/make_tutorials.py
imports: import argparse
  import json
  import os
  import tarfile
  import time
  from pathlib import Path
  from typing import Dict, Optional
  import nbformat
  import papermill
  from bs4 import BeautifulSoup
  from nbclient.exceptions import CellTimeoutError
  from nbconvert import HTMLExporter, ScriptExporter
label_desc: Use image node_id 1 for calling a global function with example usage: _get_paths(repo_dir, t_dir, tid) and returns: paths