code: def create_with_validation(cls, *args, **kwargs):
          
          ret_val = cls(*args, **kwargs)
          ret_val.full_clean()
          ret_val.save()
          return ret_val
docs: Factory method that creates and validates the model object before it is saved.