class_docstr: ### Lab
  
  Lab contains the labml specific properties.
class_docstr_tok: ["#","#","#","Lab","Lab","contains","the","labml","specific","properties","."]
code: def __load_config_files(path: Path):
      configs = []
  
      while path.exists():
          if path.is_dir():
              config_file = path / _CONFIG_FILE_NAME
              if config_file.is_file():
                  with open(str(config_file)) as f:
                      config = util.yaml_load(f.read())
                      if config is None:
                          config = {}
                      config["config_file_path"] = path
                      configs.append(config)
  
          if str(path) == path.anchor:
              break
  
          path = path.parent
  
      return configs
  
imports: from copy import deepcopy
  from pathlib import Path
  from typing import Optional, Dict
  from labml.logger import Text
  from labml.utils import get_caller_file
  from labml.utils.notice import labml_notice
  from .None import util
  from .app.configs import AppTrackConfigs
  from .util import is_colab, is_kaggle
label_desc: Use image node_id 11 for calling the Lab obj's underlying member method code with example usage: obj.__load_config_files(path) and returns: configs