code: def test_reinsert() -> None:
      dim = 2
      multilist = VectorLinkedList(dimension=dim)
  
      new_node = VectorNode(dim)
      another_node = VectorNode(dim)
  
      multilist.append(new_node, 0)
      multilist.append(another_node, 0)
  
      multilist.append(another_node, 1)
      multilist.append(new_node, 1)
  
      popped_node = multilist.pop(new_node, 1 + 1)
  
      multilist.reinsert(new_node, 0 + 1)
      assert multilist.chain_length(0) == 2
      assert multilist.chain_length(1) == 1
      assert new_node.next[0] is another_node
      assert new_node.prev[0] is multilist.sentinel
      assert another_node.prev[0] is new_node
      assert another_node.next[0] is multilist.sentinel
      assert another_node.prev[1] is multilist.sentinel
      assert another_node.next[1] is multilist.sentinel
  
      multilist.reinsert(popped_node, 1 + 1)
      assert multilist.chain_length(0) == 2
      assert multilist.chain_length(1) == 2
      assert another_node.prev[1] is multilist.sentinel
      assert another_node.next[1] is new_node
      assert new_node.prev[1] is another_node
      assert new_node.next[1] is multilist.sentinel
  
file_path: nevergrad/nevergrad/optimization/multiobjective/test_hypervolume.py
imports: import numpy
  from .hypervolume import VectorNode, VectorLinkedList, HypervolumeIndicator
label_desc: Use image node_id 8 for calling a global function with example usage: test_reinsert() without return types