code: def init(repo, yes):
      """
      Initializes new repository in the --repo directory.
      Initializes new repository in the current working directory if --repo argument is not provided:
       - Creates .aim directory & runs upgrades for structured DB
      """
      repo_path = clean_repo_path(repo) or os.getcwd()
      re_init = False
      if Repo.exists(repo_path):
          if yes:
              re_init = True
          else:
              re_init = click.confirm(
                  "Aim repository is already initialized. "
                  "Do you want to re-initialize to empty Aim repository?"
              )
          if not re_init:
              return
          # Clear old repo
          Repo.rm(repo_path)
  
      repo = Repo.from_path(repo_path, init=True)
      if re_init:
          click.echo(
              "Re-initialized empty Aim repository at {}".format(
                  repo.root_path
              )
          )
      else:
          click.echo(
              "Initialized a new Aim repository at {}".format(
                  repo.root_path
              )
          )
  
imports: import click
  import os
  from aim.sdk.repo import Repo
  from aim.sdk.utils import clean_repo_path
label_desc: Use image node_id 1 for calling a global function with example usage: init(repo, yes) without return types