code: def to_immutable(self):
          
          if self._enumeration is None:
              self._get_mutable_enumeration()
          col_obj = self._enumeration['immutable'][self._collection_type]
          return col_obj(self.header, self.values)
docs: Get an immutable version of this collection.