code: def ais_cache_base() -> str:
      """Return path to local cache for AIS."""
      override_dir = os.environ.get(
          constants.NEMO_ENV_DATA_STORE_CACHE_DIR, ""
      )
      if override_dir == "":
          cache_dir = resolve_cache_dir().as_posix()
      else:
          cache_dir = pathlib.Path(override_dir).resolve().as_posix()
  
      if cache_dir.endswith(NEMO_VERSION):
          # Prevent re-caching dataset after upgrading NeMo
          cache_dir = os.path.dirname(cache_dir)
      return os.path.join(cache_dir, "ais")
  
imports: import os
  import pathlib
  import shutil
  import subprocess
  from typing import Tuple
  from nemo import __version__
  from nemo import constants
  from nemo.utils import logging
label_desc: Use image node_id 5 for calling a global function with example usage: ais_cache_base() and returns: os