code: def get_def_models(self, definition_filter=None):
          
          model_filter = definition_filter or (lambda tag: True)
          return {
              definition.name: definition.obj
              for definition in self.definition_models
              if model_filter(definition)
          }
docs: Used for class based definitions