code: def test_assert_same_float_dtype(self):
      self.assertIs(
          tf.float32, dtype_util.assert_same_float_dtype(None, None)
      )
      self.assertIs(
          tf.float32, dtype_util.assert_same_float_dtype([], None)
      )
      self.assertIs(
          tf.float32, dtype_util.assert_same_float_dtype([], tf.float32)
      )
      self.assertIs(
          tf.float32,
          dtype_util.assert_same_float_dtype(None, tf.float32),
      )
      self.assertIs(
          tf.float32,
          dtype_util.assert_same_float_dtype([None, None], None),
      )
      self.assertIs(
          tf.float32,
          dtype_util.assert_same_float_dtype([None, None], tf.float32),
      )
  
      const_float = tf.constant(3.0, dtype=tf.float32)
      self.assertIs(
          tf.float32,
          dtype_util.assert_same_float_dtype([const_float], tf.float32),
      )
      self.assertRaises(
          ValueError,
          dtype_util.assert_same_float_dtype,
          [const_float],
          tf.int32,
      )
  
imports: import dataclasses
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the FloatDTypeTest obj's underlying member method code with example usage: obj.test_assert_same_float_dtype() without return types