code: def str2bool(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.")
  
imports: from __future__ import division
  from __future__ import print_function
  from builtins import str
  from builtins import range
  from past.utils import old_div
  from builtins import object
  import tensorflow
  import cv2
  import numpy
  import os
  import sys
  import argparse
  import pdb
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: str2bool(v) and returns: True, False