class_docstr: Wrapper class for overridden python method definitions.
  
  This class contains python methods that overrides C++ virtual functions
  declared in `pywrap_function_lib.PyFunctionLibrary`.
class_docstr_tok: ["Wrapper","class","for","overridden","python","method","definitions",".","This","class","contains","python","methods","that","overrides","C++","virtual","functions","declared","in","`","pywrap_function_lib.PyFunctionLibrary","`","."]
docstr: Calculates min and max values from statistics.
  
  Args:
    calibration_statistics_serialized: Serialized `CalibrationStatistics`.
      This will be the source to calculate min and max values from.
    calibration_options_serialized: Serialized `CalibrationOptions`. Specifies
      how the min / max should be calculated.
  
  Returns:
    (min_value, max_value): Min and max calculated using calib_opts.
  
  Raises:
    ValueError: Unsupported calibration method is given.
docstr_tok: ["Calculates","min","and","max","values","from","statistics",".","Args",":","calibration_statistics_serialized",":","Serialized","`","CalibrationStatistics","`",".","This","will","be","the","source","to","calculate","min","and","max","values","from",".","calibration_options_serialized",":","Serialized","`","CalibrationOptions","`",".","Specifies","how","the","min","\/","max","should","be","calculated",".","Returns",":","(","min_value",",","max_value",")",":","Min","and","max","calculated","using","calib_opts",".","Raises",":","ValueError",":","Unsupported","calibration","method","is","given","."]
code: def get_calibration_min_max_value(
      self,
      calibration_statistics_serialized: bytes,
      calibration_options_serialized: bytes,
  ) -> tuple[float, float]:
      """Calculates min and max values from statistics.
  
      Args:
        calibration_statistics_serialized: Serialized `CalibrationStatistics`.
          This will be the source to calculate min and max values from.
        calibration_options_serialized: Serialized `CalibrationOptions`. Specifies
          how the min / max should be calculated.
  
      Returns:
        (min_value, max_value): Min and max calculated using calib_opts.
  
      Raises:
        ValueError: Unsupported calibration method is given.
      """
      # LINT.ThenChange(py_function_lib.h:get_calibration_min_max_value)
      return calibration_algorithm.get_min_max_value(
          calibration_statistics_pb2.CalibrationStatistics.FromString(
              calibration_statistics_serialized
          ),
          quantization_options_pb2.CalibrationOptions.FromString(
              calibration_options_serialized
          ),
      )
  
imports: from collections.abc import Callable, Collection, Mapping, Sequence
  from typing import Optional
  from absl import logging
  from tensorflow.compiler.mlir.quantization.tensorflow import exported_model_pb2
  from tensorflow.compiler.mlir.quantization.tensorflow import quantization_options_pb2
  from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import calibration_algorithm
  from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import calibration_statistics_pb2
  from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import pywrap_calibration
  from tensorflow.compiler.mlir.quantization.tensorflow.python import pywrap_function_lib
  from tensorflow.compiler.mlir.quantization.tensorflow.python import representative_dataset
  from tensorflow.compiler.mlir.quantization.tensorflow.python import save_model
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import saver_pb2
  from tensorflow.python.client import session
  from tensorflow.python.eager import context
  from tensorflow.python.eager import wrap_function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.saved_model import load
  from tensorflow.python.saved_model import loader_impl
  from tensorflow.python.trackable import autotrackable
  from tensorflow.python.types import core
label_desc: Use image node_id 3 for calling the PyFunctionLibrary obj's underlying member method code with example usage: obj.get_calibration_min_max_value(calibration_statistics_serialized, calibration_options_serialized) and returns: calibration_algorithm