class_docstr: Store and load storages from a shared file system. Each agent should
  have this shared file system mounted in the same location defined by the
  `host_path`.
class_docstr_tok: ["Store","and","load","storages","from","a","shared","file","system",".","Each","agent","should","have","this","shared","file","system","mounted","in","the","same","location","defined","by","the","`","host_path","`","."]
docstr: Prepare a local directory exposing the checkpoint. Do some simple checks to make sure the
  configuration seems reasonable.
docstr_tok: ["Prepare","a","local","directory","exposing","the","checkpoint",".","Do","some","simple","checks","to","make","sure","the","configuration","seems","reasonable","."]
code: def restore_path(
      self, src: str, selector: Optional[storage.Selector] = None
  ) -> Iterator[pathlib.Path]:
      """
      Prepare a local directory exposing the checkpoint. Do some simple checks to make sure the
      configuration seems reasonable.
      """
      if selector is not None:
          logger.warning(
              "Ignoring partial checkpoint download from shared_fs; all files will be directly "
              "accessible from shared_fs."
          )
      check.true(
          os.path.exists(self._base_path),
          f"Storage directory does not exist: {self._base_path}. Please verify that you are "
          "using the correct configuration value for checkpoint_storage.host_path",
      )
      storage_dir = os.path.join(self._base_path, src)
      if not os.path.exists(storage_dir):
          raise errors.CheckpointNotFound(
              f"Did not find checkpoint {src} in shared_fs storage"
          )
      yield pathlib.Path(storage_dir)
  
imports: import contextlib
  import glob
  import logging
  import os
  import pathlib
  import shutil
  from typing import Any, Callable, Dict, Iterator, List, Optional, Union
  from determined import errors, util
  from determined.common import check, storage
label_desc: Use image node_id 4 for calling the SharedFSStorageManager obj's underlying member method code with example usage: obj.restore_path(src, selector) without return types