def METHOD_NAME(test_case):
    input = flow.tensor(np.random.randn(2, 3, 4, 5), dtype=flow.float32)
    output = input.to(device=flow.device("cuda"), dtype=flow.int)
    test_case.assertEqual(output.dtype, flow.int)
    test_case.assertEqual(output.device, flow.device("cuda"))