code: def create(self, instance, errors):
          
          if errors:
              return self.errors(errors)
          return self.created(instance)
docs: Create an instance of a model.
  
          :param instance: The created model instance.
          :param errors: Any errors.
          :return: The created model instance, or a dictionary of errors.