Returns a clone of this mapping that is configured with the given
        option and attribute option dictionaries.

        :param dict options: Maps representer options to their values.
        :param dict attribute_options: Maps attribute names to dictionaries
          mapping attribute options to their values.

def clone(self, options=None, attribute_options=None):
        """
        Returns a clone of this mapping that is configured with the given
        option and attribute option dictionaries.

        :param dict options: Maps representer options to their values.
        :param dict attribute_options: Maps attribute names to dictionaries
          mapping attribute options to their values.
        """
        copied_cfg = self.__configurations[-1].copy()
        upd_cfg = type(copied_cfg)(options=options,
                                   attribute_options=attribute_options)
        copied_cfg.update(upd_cfg)
        return self.__class__(self.__mp_reg, self.__mapped_cls,
                              self.__de_cls, copied_cfg)