def METHOD_NAME(test_case):
    with test_case.assertRaises(RuntimeError) as context:
        ref = flow.tensor([1])
        start = [1]
        stop = [1]
        step = [-1]
        flow._C.slice(ref, start, stop, step)
    test_case.assertTrue(
        "The step list elements must be greater than 0, but got "
        in str(context.exception)
    )