code: def test_degree():
      row = torch.tensor([0, 1, 0, 2, 0])
      deg = degree(row, dtype=torch.long)
      assert deg.dtype == torch.long
      assert deg.tolist() == [3, 1, 1]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_degree() without return types