code: def _parse_inference_type(value, flag):
      """Converts the inference type to the value of the constant.
  
      Args:
        value: str representing the inference type.
        flag: str representing the flag name.
  
      Returns:
        tf.dtype.
  
      Raises:
        ValueError: Unsupported value.
      """
      if value == "FLOAT":
          return dtypes.float32
      if value == "INT8":
          return dtypes.int8
      if value == "UINT8" or value == "QUANTIZED_UINT8":
          return dtypes.uint8
      raise ValueError(
          "Unsupported value for `{}` flag. Expected FLOAT, INT8, UINT8, or "
          "QUANTIZED_UINT8 instead got {}.".format(flag, value)
      )
  
imports: import argparse
  import os
  import sys
  import warnings
  from absl import app
  import tensorflow
  from tensorflow.lite.python import lite
  from tensorflow.lite.python.convert import register_custom_opdefs
  from tensorflow.lite.toco import toco_flags_pb2
  from tensorflow.lite.toco.logging import gen_html
  from tensorflow.python import tf2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.platform import gfile
  from tensorflow.python.util import keras_deps
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_inference_type(value, flag) and returns: dtypes, dtypes, dtypes