code: def equals(self, actual_seq):
      
  
      try:
        expected = dict([(element, None) for element in self._expected_seq])
        actual = dict([(element, None) for element in actual_seq])
      except TypeError:
        # Fall back to slower list-compare if any of the objects are unhashable.
        expected = list(self._expected_seq)
        actual = list(actual_seq)
        expected.sort()
        actual.sort()
      return expected == actual
docs: Check to see whether actual_seq has same elements as expected_seq.
  
      Args:
        actual_seq: sequence
  
      Returns:
        bool