code: def _load_config_file(path):
      with open(path, encoding="utf_8") as f:
          config = yaml.safe_load(f)
      algos = []
      for algo_type in ["tuner", "assessor", "advisor"]:
          for algo in config.get(algo_type + "s", []):
              algos.append(AlgoMeta.load(algo, algo_type))  # type: ignore
      return algos
  
file_path: nni/nni/tools/package_utils/config_manager.py
imports: from __future__ import annotations
  from collections import defaultdict
  import yaml
  from nni.runtime.config import get_builtin_config_file, get_config_file
  from .common import AlgoMeta
label_desc: Use image node_id 7 for calling a global function with example usage: _load_config_file(path) and returns: algos