code: def test_random_flip():
      assert str(RandomFlip(axis=0)) == "RandomFlip(axis=0, p=0.5)"
  
      pos = torch.tensor([[-1.0, 1.0], [-3.0, 0.0], [2.0, -1.0]])
  
      data = Data(pos=pos)
      data = RandomFlip(axis=0, p=1)(data)
      assert len(data) == 1
      assert data.pos.tolist() == [[1.0, 1.0], [3.0, 0.0], [-2.0, -1.0]]
  
      data = Data(pos=pos)
      data = RandomFlip(axis=1, p=1)(data)
      assert len(data) == 1
      assert data.pos.tolist() == [
          [-1.0, -1.0],
          [-3.0, 0.0],
          [2.0, 1.0],
      ]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_random_flip() without return types