code: def repr_list(_list, indent):
      
      # pprint represents lists and tuples in one row if possible. We want one
      # per row, so we iterate ourselves.
      if _list is None:
          return 'None'
      if isinstance(_list, MutableSequence):
          bm = '['
          em = ']'
      elif isinstance(_list, Iterable):
          bm = '('
          em = ')'
      else:
          raise TypeError("Object must be an iterable, but is a %s" %
                          type(_list))
      ret = bm + '\n'
      for value in _list:
          ret += _indent('%r,\n' % value, 2)
      ret += em
      ret = repr_text(ret, indent=indent)
      return ret.lstrip(' ')
docs: Return a debug representation of a list or tuple.