class_docstr: Storage and load checkpoints from a predefined path available to the task runtime.
class_docstr_tok: ["Storage","and","load","checkpoints","from","a","predefined","path","available","to","the","task","runtime","."]
code: def from_config(
      cls,
      config: Dict[str, Any],
      container_path: Optional[str] = None,
  ) -> "DirectoryStorageManager":
      # `container_path`` argument here is ignored: it's specific to the way `shared_fs`
      # discovers the storage location.
      # `directory` storage will always use the directory provided in the config.
      allowed_keys = {"container_path"}
      for key in config.keys():
          check.is_in(
              key, allowed_keys, "extra key in shared_fs config"
          )
  
      check.is_in(
          "container_path",
          config,
          "directory checkpoint config is missing container_path",
      )
  
      base_path = config["container_path"]
  
      return cls(base_path)
  
file_path: determined/harness/determined/common/storage/directory.py
imports: import contextlib
  import logging
  import os
  import pathlib
  from typing import Any, Dict, Iterator, Optional
  from determined import errors
  from determined.common import check, storage
label_desc: Use image node_id 1 for calling the DirectoryStorageManager obj's underlying member method code with example usage: obj.from_config(cls, config, container_path) and returns: cls