code: def str2bool(v):
      """
      https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
      """
      if isinstance(v, bool):
          return v
      if v.lower() in ("yes", "true", "t", "y", "1"):
          return True
      elif v.lower() in ("no", "false", "f", "n", "0"):
          return False
      else:
          raise argparse.ArgumentTypeError("boolean value expected")
  
file_path: llmga/llmga/diffusers/scripts/convert_consistency_to_diffusers.py
imports: import argparse
  import os
  import torch
  from diffusers import CMStochasticIterativeScheduler, ConsistencyModelPipeline, UNet2DModel
label_desc: Use image node_id 1 for calling a global function with example usage: str2bool(v) and returns: v, True, False