code: def add_dict_to_argparser(parser, default_dict):
      for k, v in default_dict.items():
          v_type = type(v)
          if v is None:
              v_type = str
          elif isinstance(v, bool):
              v_type = str2bool
          parser.add_argument(f"--{k}", default=v, type=v_type)
  
file_path: consistency_models/cm/script_util.py
imports: import argparse
  from .karras_diffusion import KarrasDenoiser
  from .unet import UNetModel
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: add_dict_to_argparser(parser, default_dict) without return types