code: def list_loader(*decorator_args, model):
      
      def wrapped(fn):
          @wraps(fn)
          def decorated(*args, **kwargs):
              return fn(model.query.all())
          return decorated
  
      if decorator_args and callable(decorator_args[0]):
          return wrapped(decorator_args[0])
      return wrapped
docs: Decorator to automatically query the database for all records of a model.
  
      :param model: The model class to query