code: def copy(self):
          
          dup = type(self)()
          dup._indices = OrderedDict(
              (k, list(v)) for k,v in six.iteritems(self._indices)
          )
          dup._lines = self._lines.copy()
          return dup
docs: Create a copy of the mapping, including formatting information