code: def update_cfg_with_argparser(cfg, args, prefix=None):
      r"""To support update cfg with command line"""
      for key in cfg:
          value = cfg[key]
          full_key_name = (
              prefix + "." + key if prefix is not None else key
          )
          if isinstance(value, CfgNode):
              update_cfg_with_argparser(
                  value, args, prefix=full_key_name
              )
          else:
              v = getattr(args, full_key_name)
              if type(v) != type(value):
                  raise TypeError
              if v != value:
                  cfg[key] = v
                  print(
                      "Update key {}, value {} -> {}".format(
                          full_key_name, value, v
                      )
                  )
  
file_path: OpenPrompt/openprompt/config.py
imports: import argparse
  from yacs.config import CfgNode
  import sys
  from openprompt.utils.utils import check_config_conflicts
  from .default_config import get_default_config
  from openprompt.utils.logging import logger
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: update_cfg_with_argparser(cfg, args, prefix) without return types