<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, options=None, attribute_options=None):
 """ Updates this mapping with the given option and attribute option maps. :param dict options: Maps representer options to their values. :param dict attribute_options: Maps attribute names to dictionaries mapping attribute options to their values. """

        attr_map = self.__get_attribute_map(self.__mapped_cls, None, 0)
        for attributes in attribute_options:
            for attr_name in attributes:
                if not attr_name in attr_map:
                    raise AttributeError('Trying to configure non-existing '
                                         'resource attribute "%s"'
                                         % (attr_name))
        cfg = RepresenterConfiguration(options=options,
                                       attribute_options=attribute_options)
        self.configuration.update(cfg)