code: def __init__(self, tree: Dict[str, Union[dict, Path]]) -> None:
      self._keys = set()
      for key, value in tree.items():
          key = key.replace(".", "_")
          self._keys.add(key)
          setattr(
              self,
              key,
              Struct(value) if isinstance(value, dict) else value,
          )
      self._keys = frozenset(self._keys)
  
      self.keys = lambda: self._keys
  
file_path: DeepPavlov/deeppavlov/configs/__init__.py
imports: from pathlib import Path
  from typing import Iterator, Dict, Union, Iterable
label_desc: Use image node_id 3 to create a new Struct object  with example: obj = Struct(tree)