code: def test_random_jitter():
      assert str(RandomJitter(0.1)) == "RandomJitter(0.1)"
  
      pos = torch.tensor(
          [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0], [0.0, 0.0]]
      )
  
      data = Data(pos=pos)
      data = RandomJitter(0)(data)
      assert len(data) == 1
      assert torch.allclose(data.pos, pos)
  
      data = Data(pos=pos)
      data = RandomJitter(0.1)(data)
      assert len(data) == 1
      assert data.pos.min() >= -0.1
      assert data.pos.max() <= 0.1
  
      data = Data(pos=pos)
      data = RandomJitter([0.1, 1])(data)
      assert len(data) == 1
      assert data.pos[:, 0].min() >= -0.1
      assert data.pos[:, 0].max() <= 0.1
      assert data.pos[:, 1].min() >= -1
      assert data.pos[:, 1].max() <= 1
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_random_jitter() without return types