code: def setup_directories(input_path: str):
      path = clean_repo_path(input_path)
      repo_path = path + "/.aim"
      new_repo_path = path + "/.aim_progress"
      l_repo_path = path + "/.aim_legacy"
      if not (os.path.exists(repo_path) and os.path.isdir(repo_path)):
          click.echo(
              f"'{input_path}' does not seem to be an Aim repository. Exiting."
          )
          exit(1)
      if os.path.exists(new_repo_path):
          shutil.rmtree(new_repo_path, ignore_errors=True)
      os.environ[AIM_REPO_NAME] = ".aim_progress"
      return repo_path, new_repo_path, l_repo_path
  
file_path: aim/aim/cli/upgrade/utils.py
imports: import os.path
  import click
  import shutil
  from aim.cli.upgrade._legacy_repo import AimRepo, Run, deserialize_pb, AIM_MAP_METRICS_KEYWORD
  from aim.sdk.configs import AIM_REPO_NAME
  from aim.sdk.utils import clean_repo_path
  from aim.sdk.run import Run
  from aim.sdk.repo import Repo
label_desc: Use image node_id 1 for calling a global function with example usage: setup_directories(input_path) and returns: repo_path,  new_repo_path,  l_repo_path