code: def merge_configs(cfg, sec, args_dict):
      assert sec in CONFIG_SECS, "invalid config section {}".format(sec)
      sec_dict = getattr(cfg, sec.upper())
      for k, v in args_dict.items():
          if v is None:
              continue
          try:
              if hasattr(sec_dict, k):
                  setattr(sec_dict, k, v)
          except:
              pass
      return cfg
  
imports: import logging
  from .utility import AttrDict
label_desc: Use image node_id 3 for calling a global function with example usage: merge_configs(cfg, sec, args_dict) and returns: cfg