code: def definition(self, name, tags=None):
          
          def wrapper(obj):
              self.definition_models.append(SwaggerDefinition(name, obj,
                                                              tags=tags))
              return obj
          return wrapper
docs: Decorator to add class based definitions