class_docstr: Implements lit.Model interface for testing.
  
  This class allows user-specified outputs for testing return values.
class_docstr_tok: ["Implements","lit.Model","interface","for","testing",".","This","class","allows","user-specified","outputs","for","testing","return","values","."]
docstr: Set model internals.
  
  Args:
    input_spec: An input spec.
    output_spec: An output spec.
    results: Results to return.
docstr_tok: ["Set","model","internals",".","Args",":","input_spec",":","An","input","spec",".","output_spec",":","An","output","spec",".","results",":","Results","to","return","."]
code: def __init__(
      self,
      input_spec: lit_types.Spec,
      output_spec: lit_types.Spec,
      results: list[JsonDict],
  ):
      """Set model internals.
  
      Args:
        input_spec: An input spec.
        output_spec: An output spec.
        results: Results to return.
      """
      self._input_spec = input_spec
      self._output_spec = output_spec
      self._predict_counter = 0
      self._results = results
  
imports: from collections.abc import Iterable, Iterator
  from lit_nlp.api import model
  from lit_nlp.api import types
  import numpy
  import numpy.testing
label_desc: Use image node_id 1 to create a new CustomOutputModelForTesting object from inherited base classes: lit_model with example: obj = CustomOutputModelForTesting(input_spec, output_spec, results)