code: def _assert_same_float_dtype(
      tensors=None, dtype=None
  ):  # pylint: disable=unused-argument,redefined-outer-name
      """Checks that all tensors have the same dtype."""
      expected_dtype = None
      if tensors:
          expected_dtype = dtype
          for t in tensors:
              if not expected_dtype:
                  expected_dtype = t.dtype
              elif expected_dtype != t.dtype:
                  raise ValueError(
                      f"Mismatched dtypes.: {expected_dtype} vs. {t.dtype}"
                  )
      if not expected_dtype:
          expected_dtype = dt.float32
      return expected_dtype
  
imports: import numpy
  import six
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import dtype
  from tensorflow_probability.python.internal.backend.numpy import ops
label_desc: Use image node_id 22 for calling a global function with example usage: _assert_same_float_dtype(tensors, dtype) and returns: expected_dtype