code: def _is_quantized_input_stats_required(
      conversion_flags: _conversion_flags_pb2.TocoFlags,
  ) -> bool:
      """Checks if the `quantized_input_stats` flag is required for conversion.
  
      Args:
        conversion_flags: A protocol buffer describing the conversion process.
  
      Returns:
        True, if the `inference_type` or the `inference_input_type` is a quantized
        type and it is not post training quantization, else False.
      """
      quantized_inference_types = [
          _types_pb2.QUANTIZED_UINT8,
          _types_pb2.QUANTIZED_INT8,
      ]
      return (
          conversion_flags.inference_type in quantized_inference_types
          or conversion_flags.inference_input_type
          in quantized_inference_types
      ) and not conversion_flags.post_training_quantize
  
imports: import distutils.spawn
  import enum
  import hashlib
  import os
  import platform
  import subprocess
  import tempfile
  from typing import Optional
  import warnings
  from tensorflow.compiler.mlir.quantization.stablehlo import quantization_options_pb2
  from tensorflow.lite.python import lite_constants
  from tensorflow.lite.python import util
  from tensorflow.lite.python import wrap_toco
  from tensorflow.lite.python.convert_phase import Component
  from tensorflow.lite.python.convert_phase import convert_phase
  from tensorflow.lite.python.convert_phase import ConverterError
  from tensorflow.lite.python.convert_phase import SubComponent
  from tensorflow.lite.python.metrics import converter_error_data_pb2
  from tensorflow.lite.python.metrics.wrapper import metrics_wrapper
  from tensorflow.lite.toco import model_flags_pb2
  from tensorflow.lite.toco import toco_flags_pb2
  from tensorflow.lite.toco import types_pb2
  from tensorflow.lite.tools import flatbuffer_utils
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 for calling a global function with example usage: _is_quantized_input_stats_required(conversion_flags) and returns: unknown