class_docstr: Adapter from a function to a :class:`ModelFactory`.
class_docstr_tok: ["Adapter","from","a","function","to","a",":","class",":","`","ModelFactory","`","."]
code: def __init__(
      self,
      name: str,
      tags: AbstractSet[ModelTag],
      dataset_req: DatasetReq,
      fn: ModelFactoryFn,
  ) -> None:
      self.name = name
      self.tags = tags
      self.dataset_req = dataset_req
      self._fn = fn
  
file_path: GPflow/benchmark/model_api.py
imports: from abc import ABC, abstractmethod
  from typing import AbstractSet, Callable
  import numpy
  from benchmark.dataset_api import DatasetReq, XYData
  from benchmark.registry import TaggedRegistry
  from benchmark.tag import Tag, TagReq
  from gpflow.models import GPModel
label_desc: Use image node_id 1 to create a new FnModelFactory object from inherited base classes: ModelFactory with example: obj = FnModelFactory(name, tags, dataset_req, fn)