code: def doc(inherit=None, **kwargs):
      
      def wrapper(func):
          annotate(func, 'docs', [kwargs], inherit=inherit)
          return activate(func)
      return wrapper
docs: Annotate the decorated view function or class with the specified Swagger
      attributes.
  
      Usage:
  
      .. code-block:: python
  
          @doc(tags=['pet'], description='a pet store')
          def get_pet(pet_id):
              return Pet.query.filter(Pet.id == pet_id).one()
  
      :param inherit: Inherit Swagger documentation from parent classes