code: def testConvertArgsToTensorWithDType(
      self, args, dtype, expected_converted_args
  ):
      # Like the above test, but now with dtype hints.
      converted_args = nest_util.convert_args_to_tensor(args, dtype)
      tf.nest.assert_same_structure(
          expected_converted_args, converted_args
      )
      tf.nest.map_structure(
          lambda e: self.assertIsInstance(e, tf.Tensor), converted_args
      )
      converted_args_ = tf.nest.map_structure(
          self.evaluate, converted_args
      )
      tf.nest.map_structure(
          self.assertAllEqual, expected_converted_args, converted_args_
      )
  
imports: import collections
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import deterministic
  from tensorflow_probability.python.distributions import half_cauchy
  from tensorflow_probability.python.distributions import joint_distribution_auto_batched
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow.python.util import nest
label_desc: Use image node_id 4 for calling the NestUtilTest obj's underlying member method code with example usage: obj.testConvertArgsToTensorWithDType(args, dtype, expected_converted_args) without return types