code: def get_staging_dir() -> FilePathStr:
      path = os.path.join(env.get_data_dir(), "artifacts", "staging")
      try:
          mkdir_exists_ok(path)
      except OSError as e:
          raise PermissionError(
              f"Unable to write staging files to {path}. To fix this problem, please set "
              f"{env.DATA_DIR} to a directory where you have the necessary write access."
          ) from e
  
      return FilePathStr(os.path.abspath(os.path.expanduser(path)))
  
imports: import os
  from wandb import env
  from wandb.sdk.lib.filesystem import mkdir_exists_ok
  from wandb.sdk.lib.paths import FilePathStr
label_desc: Use image node_id 1 for calling a global function with example usage: get_staging_dir() and returns: FilePathStr