code: def update_config(config_file):
      exp_config = None
      with open(config_file) as f:
          exp_config = edict(yaml.load(f))
      for k, v in exp_config.items():
          if k in config:
              if isinstance(v, dict):
                  _update_dict(k, v)
              else:
                  config[k] = v
          else:
              raise ValueError("{} not exist in config.py".format(k))
      assert (
          not config.TRAIN.USE_TEMP or not config.TRAIN.USE_NEW_TEMP
      ), "Don't use both temporal methods"
      assert (
          config.DATA.NUM_NEIGHBOUR_TUPLES
          <= config.DATA.NUM_NEIGHBOUR_FRAMES
          * (config.DATA.NUM_NEIGHBOUR_FRAMES - 1)
          // 2
      )
  
file_path: insightface/body/human_pose/ambiguity_aware/lib/core/config.py
imports: import os
  import os.path
  import yaml
  import numpy
  from easydict import EasyDict
label_desc: Use image node_id 2 for calling a global function with example usage: update_config(config_file) without return types