code: def _option_boolean(arg):
      if not arg or not arg.strip():
          # no argument given, assume used as a flag
          return True
      elif arg.strip().lower() in ("no", "0", "false"):
          return False
      elif arg.strip().lower() in ("yes", "1", "true"):
          return True
      else:
          raise ValueError('"%s" unknown boolean' % arg)
  
imports: import sys
  import os
  import shutil
  import io
  import re
  import textwrap
  from os.path import relpath
  from errno import EEXIST
  import traceback
label_desc: Use image node_id 1 for calling a global function with example usage: _option_boolean(arg) and returns: True, False, True