class_docstr: Base class for LIT generators.
class_docstr_tok: ["Base","class","for","LIT","generators","."]
docstr: Return a list of generated examples, for a single input.
docstr_tok: ["Return","a","list","of","generated","examples",",","for","a","single","input","."]
code: def generate(
      self,
      example: JsonDict,
      model: lit_model.Model,
      dataset: lit_dataset.Dataset,
      config: Optional[JsonDict] = None,
  ) -> list[JsonDict]:
      """Return a list of generated examples, for a single input."""
      pass
  
imports: import abc
  from collections.abc import Sequence
  import inspect
  from typing import Any, Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
label_desc: Use image node_id 3 for calling the Generator obj's underlying member method code with example usage: obj.generate(example, model, dataset, config) without return types