code: def as_pruning(self):
          
          return PruningMapping(self.__mp_reg, self.__mapped_cls, self.__de_cls,
                                self.__configurations[-1])
docs: Returns a clone of this mapping with the `is_pruning` flag set to
          *True*.