class_docstr: Implements lit.Model interface for a set of pre-computed predictions.
class_docstr_tok: ["Implements","lit.Model","interface","for","a","set","of","pre-computed","predictions","."]
docstr: Predict on known inputs.
  
  Args:
    inputs: input examples
    **kw: unused
  
  Returns:
    predictions
  
  Raises:
    KeyError if input not recognized
docstr_tok: ["Predict","on","known","inputs",".","Args",":","inputs",":","input","examples","*","*","kw",":","unused","Returns",":","predictions","Raises",":","KeyError","if","input","not","recognized"]
code: def predict(
      self, inputs: Iterable[JsonDict], **kw
  ) -> Iterator[JsonDict]:
      """Predict on known inputs.
  
      Args:
        inputs: input examples
        **kw: unused
  
      Returns:
        predictions
  
      Raises:
        KeyError if input not recognized
      """
      # Implement predict() directly, since there's no need to batch.
      return map(self._predict_single, inputs)
  
file_path: lit/lit_nlp/components/static_preds.py
imports: from collections.abc import Iterable, Iterator
  from typing import Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.lib import caching
label_desc: Use image node_id 9 for calling the StaticPredictions obj's underlying member method code with example usage: obj.predict(inputs) and returns: map