code: def testResultTypeWeakTypesWithTF(
      self, weak_dtype_a, dtype_b, res_dtype
  ):
      with DtypeConversionTestEnv("all"):
          input_a = (
              constant_op.constant(1, dtype=weak_dtype_a)
              if weak_dtype_a != dtypes.bool
              else constant_op.constant(True)
          )
          input_b = (
              constant_op.constant(2, dtype=dtype_b)
              if dtype_b != dtypes.bool
              else constant_op.constant(True)
          )
          weak_input_a = weak_tensor.WeakTensor(input_a)
          self.assertEqual(
              flexible_dtypes.result_type(weak_input_a, input_b),
              res_dtype,
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import extension_type
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import weak_tensor
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import weak_tensor_test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the DtypesUtilTest obj's underlying member method code with example usage: obj.testResultTypeWeakTypesWithTF(weak_dtype_a, dtype_b, res_dtype) without return types