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: Returns true if the containers have the same items. If `other` is a
  Sequence, then order is checked, otherwise it is ignored.
  
  Example:
      >>> oset = OrderedSet([1, 3, 2])
      >>> oset == [1, 3, 2]
      True
      >>> oset == [1, 2, 3]
      False
      >>> oset == [2, 3]
      False
      >>> oset == OrderedSet([3, 2, 1])
      False
docstr_tok: ["Returns","true","if","the","containers","have","the","same","items",".","If","`","other","`","is","a","Sequence",",","then","order","is","checked",",","otherwise","it","is","ignored",".","Example",":",">",">",">","oset","=","OrderedSet","(","[","1",",","3",",","2","]",")",">",">",">","oset","==","[","1",",","3",",","2","]","True",">",">",">","oset","==","[","1",",","2",",","3","]","False",">",">",">","oset","==","[","2",",","3","]","False",">",">",">","oset","==","OrderedSet","(","[","3",",","2",",","1","]",")","False"]
code: def __eq__(self, other):
      """
      Returns true if the containers have the same items. If `other` is a
      Sequence, then order is checked, otherwise it is ignored.
  
      Example:
          >>> oset = OrderedSet([1, 3, 2])
          >>> oset == [1, 3, 2]
          True
          >>> oset == [1, 2, 3]
          False
          >>> oset == [2, 3]
          False
          >>> oset == OrderedSet([3, 2, 1])
          False
      """
      # In Python 2 deque is not a Sequence, so treat it as one for
      # consistent behavior with Python 3.
      if isinstance(other, (Sequence, deque)):
          # Check that this OrderedSet contains the same elements, in the
          # same order, as the other object.
          return list(self) == list(other)
      try:
          other_as_set = set(other)
      except TypeError:
          # If `other` can't be converted into a set, it's not equal.
          return False
      else:
          return set(self) == other_as_set
  
imports: import itertools
  from collections import deque
label_desc: Use image node_id 17 for calling the OrderedSet obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, unknown, False