class_docstr: An OrderedSet is a custom MutableSet that remembers its order, so that
  every entry has an index that can be looked up.
  
  Example:
      >>> OrderedSet([1, 1, 2, 3, 2])
      OrderedSet([1, 2, 3])
class_docstr_tok: ["An","OrderedSet","is","a","custom","MutableSet","that","remembers","its","order",",","so","that","every","entry","has","an","index","that","can","be","looked","up",".","Example",":",">",">",">","OrderedSet","(","[","1",",","1",",","2",",","3",",","2","]",")","OrderedSet","(","[","1",",","2",",","3","]",")"]
docstr: Replace the 'items' list of this OrderedSet with a new one, updating
  self.map accordingly.
docstr_tok: ["Replace","the","'items","'","list","of","this","OrderedSet","with","a","new","one",",","updating","self.map","accordingly","."]
code: def _update_items(self, items):
      """
      Replace the 'items' list of this OrderedSet with a new one, updating
      self.map accordingly.
      """
      self.items = items
      self.map = {item: idx for (idx, item) in enumerate(items)}
  
imports: import itertools
  from collections import deque
label_desc: Use image node_id 25 for calling the OrderedSet obj's underlying member method code with example usage: obj._update_items(items) without return types