code: def datastore_path_to_local_path(store_path: str) -> str:
      """Convert a data store path to a path in a local cache.
  
      Args:
          store_path: a path to an object on an object store
  
      Returns:
          Path to the same object in local cache.
      """
      if store_path.startswith("ais://"):
          endpoint = ais_endpoint()
          if endpoint is None:
              raise RuntimeError(
                  f"AIS endpoint not set, cannot resolve {store_path}"
              )
  
          local_ais_cache = os.path.join(
              ais_cache_base(), ais_endpoint_to_dir(endpoint)
          )
          store_bucket, store_object = bucket_and_object_from_uri(
              store_path
          )
          local_path = os.path.join(
              local_ais_cache, store_bucket, store_object
          )
      else:
          raise ValueError(
              f"Unexpected store path format: {store_path}"
          )
  
      return local_path
  
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 10 for calling a global function with example usage: datastore_path_to_local_path(store_path) and returns: local_path