def METHOD_NAME(self, a1, a2, *args, **kwargs):
    # Check that two arrays are real, equal, and have same dtype.
    self.assertIsRealArray(a1)
    self.assertIsRealArray(a2)
    self.assertEqual(a1.dtype, a2.dtype)
    self.assertArrayEqual(a1, a2)