code: def strtobool(val_str):
      """Return boolean value of it's equivalent string representation"""
      if val_str in ("True", "true"):
          return True
      elif val_str in ("False", "false"):
          return False
      else:
          tf_logging.warning(
              "Wrong string values.       Supports False/false or True/true only."
              " val_str = ",
              val_str,
          )
          return False
  
imports: import collections
  import math
  import re
  from typing import Mapping, Sequence
  import numpy
  from tensorflow.core.framework import attr_value_pb2
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import graph_util
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.tools import strip_unused_lib
label_desc: Use image node_id 2 for calling a global function with example usage: strtobool(val_str) and returns: True, False, False