code: def _validate_options(
      *,
      inference_input_type=None,
      inference_output_type=None,
      target=None,
      experimental_default_int8_range=None,
  ):
      if inference_input_type not in (tf.float32, tf.int8):
          raise ValueError(
              "Expected `inference_input_type` to be either `tf.float32` or `tf.int8`, "
              f"got {inference_input_type}."
          )
      if inference_output_type not in (tf.float32, tf.int8):
          raise ValueError(
              "Expected `inference_output_type` to be either `tf.float32` or `tf.int8`, "
              f"got {inference_output_type}."
          )
      if target not in ("arm", "xcore"):
          raise ValueError(
              f'Expected `target` to be "arm" or "xcore", but got {target}.'
          )
  
      if not tf.executing_eagerly():
          raise RuntimeError(
              "Graph mode is not supported. Please enable eager execution using "
              "tf.enable_eager_execution() when using TensorFlow 1.x"
          )
      if experimental_default_int8_range:
          warnings.warn(
              "Using `experimental_default_int8_range` as fallback quantization stats. "
              "This should only be used for latency tests."
          )
  
file_path: compute-engine/larq_compute_engine/mlir/python/converter.py
imports: import os
  import warnings
  from typing import Optional, Union
  import tensorflow
  import tempfile
  from larq_compute_engine.mlir._tf_tfl_flatbuffer import convert_graphdef_to_tflite_flatbuffer, convert_saved_model_to_tflite_flatbuffer
  from larq_compute_engine.mlir.python.util import modify_integer_quantized_model_io_type
  from tensorflow.core.framework.types_pb2 import DataType
  from tensorflow.lite.python.util import get_tensor_name
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2
  from tensorflow.python.keras.saving import saving_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_options() without return types