class_docstr: Test for PerChannelUniformQuantizationEncodingStage.
class_docstr_tok: ["Test","for","PerChannelUniformQuantizationEncodingStage","."]
docstr: Asserts that float type values are integers.
docstr_tok: ["Asserts","that","float","type","values","are","integers","."]
code: def _assert_is_integer_float(self, quantized_vals):
      """Asserts that float type values are integers."""
      assert quantized_vals.dtype == np.float32
      self.assertAllClose(
          quantized_vals,
          tf.cast(tf.cast(quantized_vals, np.int32), np.float32),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.stages.research import quantization
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 5 for calling the PerChannelUniformQuantizationEncodingStageTest obj's underlying member method code with example usage: obj._assert_is_integer_float(quantized_vals) without return types