code: def restore_path(
      self, src: str, selector: Optional[storage.Selector] = None
  ) -> Iterator[pathlib.Path]:
      dst = os.path.join(self._base_path, src)
      os.makedirs(dst, exist_ok=True)
  
      self.download(src, dst, selector)
  
      try:
          yield pathlib.Path(dst)
      finally:
          util.rmtree_nfs_safe(dst, ignore_errors=True)
  
file_path: determined/harness/determined/common/storage/cloud.py
imports: import contextlib
  import os
  import pathlib
  from typing import Iterator, Optional, Union
  from determined import util
  from determined.common import storage
label_desc: Use image node_id 1 for calling the CloudStorageManager obj's underlying member method code with example usage: obj.restore_path(src, selector) without return types