def METHOD_NAME(a, b, a_name, b_name, atol=1e-5, rtol=1e-8):
    test_case.assertTrue(
        np.allclose(a, b, atol=atol, rtol=rtol),
        f"\n{'=' * 80}"
        f"\n{a_name}:"
        f"\n{a}"
        f"\n{'-' * 80}"
        f"\n{b_name}:"
        f"\n{b}"
        f"\n{'-' * 80}"
        f"\ndiff:"
        f"\n{a - b}"
        f"\n{'*' * 80}"
        f"\nshape={shape}"
        f"\normalized_shape={normalized_shape}"
        f"\naffine={affine}"
        f"\ndtype={dtype}"
        f"\ndevice={device}"
        f"\n{a_name} vs. {b_name} max abs diff: {np.max(np.abs(a - b))}",
    )