code: def same(iterable, ref=_UNSET):
      
      iterator = iter(iterable)
      if ref is _UNSET:
          ref = next(iterator, ref)
      return all(val == ref for val in iterator)
docs: ``same()`` returns ``True`` when all values in *iterable* are
      equal to one another, or optionally a reference value,
      *ref*. Similar to :func:`all` and :func:`any` in that it evaluates
      an iterable and returns a :class:`bool`. ``same()`` returns
      ``True`` for empty iterables.
  
      >>> same([])
      True
      >>> same([1])
      True
      >>> same(['a', 'a', 'a'])
      True
      >>> same(range(20))
      False
      >>> same([[], []])
      True
      >>> same([[], []], ref='test')
      False