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","`","."]
code: def from_config(
      cls, config: Dict[str, Any], container_path: Optional[str]
  ) -> "SharedFSStorageManager":
      allowed_keys = {
          "host_path",
          "storage_path",
          "container_path",
          "propagation",
      }
      for key in config.keys():
          check.is_in(
              key, allowed_keys, "extra key in shared_fs config"
          )
      check.is_in(
          "host_path", config, "shared_fs config is missing host_path"
      )
      # Ignore legacy configuration values propagation and container_path.
      base_path = _full_storage_path(
          config["host_path"],
          config.get("storage_path"),
          container_path,
      )
      return cls(base_path)
  
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 1 for calling the SharedFSStorageManager obj's underlying member method code with example usage: obj.from_config(cls, config, container_path) and returns: cls