code: def do_reverse(value):
      
      if isinstance(value, string_types):
          return value[::-1]
      try:
          return reversed(value)
      except TypeError:
          try:
              rv = list(value)
              rv.reverse()
              return rv
          except TypeError:
              raise FilterArgumentError('argument must be iterable')
docs: Reverse the object or return an iterator that iterates over it the other
      way round.