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_sublocation_keys(
      self, _dataclass: SubDataclassT, scope: ScopedLocation
  ) -> SubDataclassT:
      dc_folder: str = self.get_folder_at_scope(scope)
      sublocs: List[str] = os.listdir(dc_folder)
      # TODO: loaded keys are simply sorted. That is a problem and doesn't respect the dataclass' OrderedDict (e.g.: metrics' sorting).
      sublocs = [
          s[len(ON_DISK_DELIM) :]
          for s in sublocs
          if s.startswith(ON_DISK_DELIM)
      ]
      if isinstance(_dataclass, DataclassHasListMixin):
          sublocs = [int(i) for i in sublocs]
      sublocs = [
          s
          for s in sublocs
          if os.path.exists(
              self._get_dataclass_filename_path(scope.with_id(s))[-1]
          )
      ]
      sublocs = list(sorted(sublocs))
      try:
          _dataclass.set_sublocation_keys(sublocs)
      except AssertionError as e:
          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 6 for calling the HyperparamsOnDiskRepository obj's underlying member method code with example usage: obj._load_dc_sublocation_keys(_dataclass, scope) and returns: _dataclass