code: def use_kwargs(args, locations=None, inherit=None, apply=None, **kwargs):
      
      kwargs.update({'locations': locations})
  
      def wrapper(func):
          options = {
              'args': args,
              'kwargs': kwargs,
          }
          annotate(func, 'args', [options], inherit=inherit, apply=apply)
          return activate(func)
      return wrapper
docs: Inject keyword arguments from the specified webargs arguments into the
      decorated view function.
  
      Usage:
  
      .. code-block:: python
  
          from marshmallow import fields
  
          @use_kwargs({'name': fields.Str(), 'category': fields.Str()})
          def get_pets(**kwargs):
              return Pet.query.filter_by(**kwargs).all()
  
      :param args: Mapping of argument names to :class:`Field <marshmallow.fields.Field>`
          objects, :class:`Schema <marshmallow.Schema>`, or a callable which accepts a
          request and returns a :class:`Schema <marshmallow.Schema>`
      :param locations: Default request locations to parse
      :param inherit: Inherit args from parent classes
      :param apply: Parse request with specified args