code: def search_aim_repo(path) -> Tuple[Any, bool]:
      found = False
      path = os.path.abspath(path)
      while path:
          repo_path = os.path.join(path, get_aim_repo_name())
          if os.path.exists(repo_path) and os.path.isdir(repo_path):
              found = True
              return path, found
          if path == "/":
              return None, found
          path = os.path.dirname(path)
  
imports: import os
  import shutil
  import tarfile
  import pathlib
  import re
  import uuid
  from contextlib import contextmanager
  from typing import Union, Any, Tuple, Optional, Callable
  from aim.sdk.configs import get_aim_repo_name
  from aim.storage.object import CustomObject
  from logging import getLogger
label_desc: Use image node_id 1 for calling a global function with example usage: search_aim_repo(path) and returns: path,  found, None,  found