code: def str_to_bool(value):
      if value == "true":
          return True
      elif value == "false":
          return False
      else:
          raise ValueError
  
imports: from __future__ import print_function
  from __future__ import division
  import argparse
  import logging
  import math
  import os
  import subprocess
  import sys
  import threading
label_desc: Use image node_id 2 for calling a global function with example usage: str_to_bool(value) and returns: True, False