code: def test_explicit_dtype_okay_if_matches(self):
      @lazy_tensor_creator.LazyTensorCreator
      def lazy_tensor():
          return tf.constant(1, dtype=tf.int32)
  
      real_tensor = tf.convert_to_tensor(lazy_tensor, dtype=tf.int32)
      self.assertEqual(tf.int32, real_tensor.dtype)
      self.assertEqualAsNumpy(
          tf.constant(1, dtype=tf.int32), real_tensor
      )
  
file_path: tensorboard/tensorboard/util/lazy_tensor_creator_test.py
imports: import tensorflow
  from tensorboard.util import lazy_tensor_creator
label_desc: Use image node_id 6 for calling the LazyTensorCreatorTest obj's underlying member method code with example usage: obj.test_explicit_dtype_okay_if_matches() and returns: tf