def METHOD_NAME(test_case, device):
    placement = flow.placement(device, range(2))
    x = flow.ones((10, 10), placement=placement, sbp=[flow.sbp.split(0)])
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)
    x = flow.ones((10, 10), placement=placement, sbp=[flow.sbp.broadcast])
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)
    # TODO: x[0][0].to("cuda") has bug
    # test_case.assertTrue("1." in str(x[0][0]))
    x = flow.ones((10, 10), placement=placement, sbp=[flow.sbp.partial_sum])
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)
    x = flow.ones((100, 100), placement=placement, sbp=[flow.sbp.split(0)])
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)
    # TODO: this test has bug
    # test_case.assertTrue("..." in tensor_str)
    x = flow.ones((100, 100), placement=placement, sbp=[flow.sbp.split(1)])
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)
    # TODO: this test has bug
    # test_case.assertTrue("..." in tensor_str)
    x = flow.ones(
        (10, 10), placement=flow.placement(device, ranks=[0]), sbp=[flow.sbp.broadcast]
    )
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)
    x = flow.ones((2, 5), placement=placement, sbp=[flow.sbp.split(0)])
    tensor_str = str(x)
    test_case.assertTrue("1." in tensor_str)