code: def load_config(file_path):
      """
      Load config from file.
  
      Args:
          file_path (str): Path of the config file to be loaded.
  
      Returns: global config
      """
      _, ext = os.path.splitext(file_path)
      assert ext in [".yml", ".yaml"], "only support yaml files for now"
  
      # load config from file and merge into global config
      cfg = _load_config_with_base(file_path)
      cfg["filename"] = os.path.splitext(os.path.split(file_path)[-1])[
          0
      ]
      merge_config(cfg)
  
      return global_config
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import importlib
  import os
  import sys
  import yaml
  import collections
  from .config.schema import SchemaDict, SharedConfig, extract_schema
  from .config.yaml_helpers import serializable
label_desc: Use image node_id 3 for calling a global function with example usage: load_config(file_path) and returns: global_config