code: def test_random_rotate():
      assert str(RandomRotate([-180, 180])) == (
          "RandomRotate(" "[-180, 180], axis=0)"
      )
  
      pos = torch.tensor(
          [[-1.0, -1.0], [-1.0, 1.0], [1.0, -1.0], [1.0, 1.0]]
      )
  
      data = Data(pos=pos)
      data = RandomRotate(0)(data)
      assert len(data) == 1
      assert data.pos.tolist() == pos.tolist()
  
      data = Data(pos=pos)
      data = RandomRotate([180, 180])(data)
      assert len(data) == 1
      assert data.pos.tolist() == [[1, 1], [1, -1], [-1, 1], [-1, -1]]
  
      pos = torch.tensor(
          [
              [-1.0, -1.0, 1.0],
              [-1.0, 1.0, 1.0],
              [1.0, -1.0, -1.0],
              [1.0, 1.0, -1.0],
          ]
      )
  
      data = Data(pos=pos)
      data = RandomRotate([180, 180], axis=0)(data)
      assert len(data) == 1
      assert data.pos.tolist() == [
          [-1, 1, -1],
          [-1, -1, -1],
          [1, 1, 1],
          [1, -1, 1],
      ]
  
      data = Data(pos=pos)
      data = RandomRotate([180, 180], axis=1)(data)
      assert len(data) == 1
      assert data.pos.tolist() == [
          [1, -1, -1],
          [1, 1, -1],
          [-1, -1, 1],
          [-1, 1, 1],
      ]
  
      data = Data(pos=pos)
      data = RandomRotate([180, 180], axis=2)(data)
      assert len(data) == 1
      assert data.pos.tolist() == [
          [1, 1, 1],
          [1, -1, 1],
          [-1, 1, -1],
          [-1, -1, -1],
      ]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_random_rotate() without return types