def METHOD_NAME(test_case):
    shape = (2, 3)
    placement = flow.placement("cuda", [0])
    sbp = flow.sbp.split(0)
    a = flow.Tensor(*shape)
    b = a.to_global(placement=placement, sbp=sbp)
    test_case.assertTrue(b.is_global)
    with test_case.assertRaises(RuntimeError):
        b.device()
    with test_case.assertRaises(RuntimeError):
        b._tensor_buffer_shapes_and_dtypes