code: def is_datastore_cache_shared() -> bool:
      """Check if store cache is shared."""
      # Assume cache is shared by default, e.g., as in resolve_cache_dir (~/.cache)
      cache_shared = int(
          os.environ.get(constants.NEMO_ENV_DATA_STORE_CACHE_SHARED, 1)
      )
  
      if cache_shared == 0:
          return False
      elif cache_shared == 1:
          return True
      else:
          raise ValueError(
              f"Unexpected value of env {constants.NEMO_ENV_DATA_STORE_CACHE_SHARED}"
          )
  
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 4 for calling a global function with example usage: is_datastore_cache_shared() and returns: False, True