code: def match(self, actual, expected, msg=None):
      msg_ = "Expected: {} Actual: {}".format(expected, actual)
      if msg:
          msg = "{} {}".format(msg_, msg)
      else:
          msg = msg_
      self.assertIsInstance(actual, arrays.ndarray)
      self.match_dtype(actual, expected, msg)
      self.match_shape(actual, expected, msg)
      if not actual.shape:
          self.assertEqual(actual.tolist(), expected.tolist())
      else:
          self.assertSequenceEqual(actual.tolist(), expected.tolist())
  
file_path: trax/trax/tf_numpy/numpy_impl/tests/logic_test.py
imports: import numpy
  import tensorflow.compat.v2
  from trax.tf_numpy.numpy_impl import array_ops
  from trax.tf_numpy.numpy_impl import arrays
  from trax.tf_numpy.numpy_impl import math_ops
label_desc: Use image node_id 5 for calling the LogicTest obj's underlying member method code with example usage: obj.match(actual, expected, msg) without return types