code: def test_mutable_set() -> None:
      s: tools.OrderedSet[int] = tools.OrderedSet((1, 2, 3))
      assert tuple(s) == (1, 2, 3)
      s.add(1)
      s.add(4)
      assert tuple(s) == (2, 3, 1, 4)
      #
      union = s & {3, 2}
      assert isinstance(union, tools.OrderedSet)
      assert tuple(union) == (2, 3)
      #
      assert s.pop() == 2
      assert s.popright() == 4
      assert tuple(s) == (3, 1)
      #
      s = tools.OrderedSet((1, 2, 3))
      intersect = s | {5, 6}
      assert isinstance(intersect, tools.OrderedSet)
      assert tuple(intersect) == (1, 2, 3, 5, 6)
      intersect = {5, 6} | s
      assert isinstance(intersect, tools.OrderedSet)
      assert tuple(intersect) == (1, 2, 3, 5, 6)
  
file_path: nevergrad/nevergrad/common/test_tools.py
imports: import os
  import typing
  import numpy
  from .None import tools
  from .None import testing
label_desc: Use image node_id 5 for calling a global function with example usage: test_mutable_set() without return types