code: def str2bool(v):
      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: insightface/reconstruction/ostec/core/projection_handler.py
imports: import os
  import argparse
  import pickle
  from tqdm.auto import tqdm
  import PIL.Image
  from PIL import ImageFilter
  import numpy
  import external.stylegan2.dnnlib.tflib
  from external.stylegan2 import pretrained_networks
  from core.generator_model import Generator
  from core.perceptual_model import PerceptualModel, load_images
  import external.stylegan2.dnnlib
  from keras.models import load_model
  from keras.applications.resnet50 import preprocess_input
label_desc: Use image node_id 2 for calling a global function with example usage: str2bool(v) and returns: v, True, False