code: def load_config(config_path):
      """load config from file"""
      if isinstance(config_path, Path):
          config_path = str(config_path)
  
      with open(config_path, "r") as f:  # pylint: disable=invalid-name
          if config_path.endswith("yml") or config_path.endswith(
              "yaml"
          ):
              config = yaml.load(f, Loader=yaml.SafeLoader)
          elif config_path.endswith("json"):
              config = json.load(f)
      # check config
      # valid_config(config)
      config_join_project_dir(config)
      return config
  
file_path: delta/delta/utils/config.py
imports: from typing import List, Union
  import os
  import json
  import time
  from shutil import copyfile, SameFileError
  from pathlib import Path
  import yaml
  from absl import logging
label_desc: Use image node_id 4 for calling a global function with example usage: load_config(config_path) and returns: config