def METHOD_NAME(self):
    target = 'cupy._core._fusion_trace.TraceImpl'
    with mock.patch(target, CreateMock(target)) as m:
        numpy_result = impl(self, numpy, m)
    with mock.patch(target, CreateMock(target)) as m:
        cupy_result = impl(self, cupy, m)
    testing.assert_array_list_equal(numpy_result, cupy_result)