code: def patch(self, instance, errors):
          
          if errors:
              return self.errors(errors)
          return self.updated(instance)
docs: Partially update a model instance.
  
          :param instance: The model instance.
          :param errors: Any errors.
          :return: The updated model instance, or a dictionary of errors.