code: def assertUnique(self, container, msg=None):
          '''Fail if elements in ``container`` are not unique.
  
          Parameters
          ----------
          container : iterable
          msg : str
              If not provided, the :mod:`marbles.mixins` or
              :mod:`unittest` standard message will be used.
  
          Raises
          ------
          TypeError
              If ``container`` is not iterable.
          '''
          if not isinstance(container, collections.Iterable):
              raise TypeError('First argument is not iterable')
  
          standardMsg = 'Elements in %s are not unique' % (container,)
  
          # We iterate over each element in the container instead of
          # comparing len(container) == len(set(container)) to allow
          # for containers that contain unhashable types
          for idx, elem in enumerate(container):
              # If elem appears at an earlier or later index position
              # the elements are not unique
              if elem in container[:idx] or elem in container[idx+1:]:
                  self.fail(self._formatMessage(msg, standardMsg)f assertUnique(self, container, msg=None):
          '''Fail if elements in ``container`` are not unique.
  
          Parameters
          ----------
          container : iterable
          msg : str
              If not provided, the :mod:`marbles.mixins` or
              :mod:`unittest` standard message will be used.
  
          Raises
          ------
          TypeError
              If ``container`` is not iterable.
          '''
          if not isinstance(container, collections.Iterable):
              raise TypeError('First argument is not iterable')
  
          standardMsg = 'Elements in %s are not unique' % (container,)
  
          # We iterate over each element in the container instead of
          # comparing len(container) == len(set(container)) to allow
          # for containers that contain unhashable types
          for idx, elem in enumerate(container):
              # If elem appears at an earlier or later index position
              # the elements are not unique
              if elem in container[:idx] or elem in container[idx+1:]:
                  self.fail(self._formatMessage(msg, standardMsg))
docs: Fail if elements in ``container`` are not unique.
  
          Parameters
          ----------
          container : iterable
          msg : str
              If not provided, the :mod:`marbles.mixins` or
              :mod:`unittest` standard message will be used.
  
          Raises
          ------
          TypeError
              If ``container`` is not iterable.