class_docstr: Hyperparams repository that saves json files for every AutoML trial.
  
  .. seealso::
      :class:`AutoML`,
      :class:`Trainer`,
class_docstr_tok: ["Hyperparams","repository","that","saves","json","files","for","every","AutoML","trial",".","..","seealso",":",":",":","class",":","`","AutoML","`",",",":","class",":","`","Trainer","`",","]
code: def _load_dc(
      self, scope: ScopedLocation, deep=False
  ) -> SubDataclassT:
      scope, _, load_file = self._get_dataclass_filename_path(scope)
  
      _json_loaded = self._load_json_file(load_file)
      _dataclass: SubDataclassT = from_json(_json_loaded)
  
      if _dataclass.has_sublocation_dataclasses():
          _dataclass = self._load_dc_sublocation_keys(_dataclass, scope)
          if deep is True:
              for sub_dc_id in _dataclass.get_sublocation_keys():
                  try:
                      sub_dc = self._load_dc(
                          scope=scope.with_id(sub_dc_id), deep=deep
                      )
                      _dataclass.store(sub_dc)
                  except (FileNotFoundError, ValueError) as e:
                      # sub_dc2 = self._load_dc(scope=scope.with_id(sub_dc_id), deep=deep)
                      # sub_dc3 = self._load_dc(scope=scope.with_id(sub_dc_id), deep=deep)
                      # sub_dc4 = self._load_dc(scope=scope.with_id(sub_dc_id), deep=deep)
                      # sub_dc5 = self._load_dc(scope=scope.with_id(sub_dc_id), deep=deep)
                      raise e from e
      return _dataclass
  
imports: import json
  import os
  import shutil
  from copy import deepcopy
  from typing import List, Optional
  from neuraxle.logging.logging import NeuraxleLogger
  from neuraxle.metaopt.data.vanilla import BaseDataclass, DataclassHasListMixin, RootDataclass, ScopedLocation, SubDataclassT, dataclass_2_id_attr, from_json, to_json
  from neuraxle.metaopt.repositories.repo import HyperparamsRepository
label_desc: Use image node_id 4 for calling the HyperparamsOnDiskRepository obj's underlying member method code with example usage: obj._load_dc(scope, deep) and returns: _dataclass