code: def test_cumsum():
      x = torch.tensor([2, 4, 1])
      assert cumsum(x).tolist() == [0, 2, 6, 7]
  
      x = torch.tensor([[2, 4], [3, 6]])
      assert cumsum(x, dim=1).tolist() == [[0, 2, 6], [0, 3, 9]]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_cumsum() without return types