def METHOD_NAME(test_case):
    for device_args, (m1, m2) in test_args:
        tensor1 = m1.randn(3, 4, 5, device=m1.device(*device_args))
        tensor2 = m2.from_dlpack(m1.to_dlpack(tensor1))
        test_case.assertTrue(are_tensors_equal(tensor1, tensor2))
        test_case.assertEqual(tensor2.storage_offset(), 0)
        tensor2[1:2, 2:3, 3:4] = random.random()
        # NOTE: OneFlow operations are asynchoronously executed,
        # so we need to synchronize explicitly here.
        flow._oneflow_internal.eager.Sync()
        test_case.assertTrue(are_tensors_equal(tensor1, tensor2))