class_docstr: Set the remembers the order elements were added
class_docstr_tok: ["Set","the","remembers","the","order","elements","were","added"]
code: def discard(self, key):
      # Remove an existing item using self.__map to find the link which is
      # then removed by updating the links in the predecessor and successors.
      if key in self.__map:
          link = self.__map.pop(key)
          link.prev().next = link.next
          link.next().prev = link.prev
  
imports: import types
  import weakref
  from collections.abc import MutableSet
label_desc: Use image node_id 10 for calling the OrderedSet obj's underlying member method code with example usage: obj.discard(key) without return types