class_docstr: Set the remembers the order elements were added
class_docstr_tok: ["Set","the","remembers","the","order","elements","were","added"]
code: def pop(self, last=True):
      if not self:
          raise KeyError("set is empty")
      if last:
          key = next(reversed(self))
      else:
          key = next(iter(self))
      self.discard(key)
      return key
  
imports: from __future__ import absolute_import, print_function, division
  import types
  import weakref
  from six import string_types
label_desc: Use image node_id 13 for calling the OrderedSet obj's underlying member method code with example usage: obj.pop(last) and returns: key