code: def match(self, actual, expected, msg="", check_dtype=True):
      if check_dtype:
          self.assertEqual(
              actual.dtype,
              _NP_to_TF_result_inferred_types[expected.dtype],
              "Dtype mismatch.\nActual: {}\nExpected: {}\n{}".format(
                  actual.dtype.as_numpy_dtype,
                  _NP_to_TF_result_inferred_types[expected.dtype],
                  msg,
              ),
          )
      self.assertEqual(
          actual.shape,
          expected.shape,
          "Shape mismatch.\nActual: {}\nExpected: {}\n{}".format(
              actual.shape, expected.shape, msg
          ),
      )
      np.testing.assert_allclose(
          actual.tolist(), expected.tolist(), rtol=1e-6
      )
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import weak_tensor
  from tensorflow.python.ops import weak_tensor_ops
  from tensorflow.python.ops import weak_tensor_test_util
  from tensorflow.python.ops.numpy_ops import np_array_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_math_ops
  from tensorflow.python.ops.numpy_ops import np_random
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the MathTest obj's underlying member method code with example usage: obj.match(actual, expected, msg, check_dtype) without return types