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","."]
code: def key_fn(self, example: JsonDict) -> str:
      reduced_example: JsonDict = {
          k: example[k] for k in self.input_identifier_keys
      }
      return caching.input_hash(reduced_example)
  
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 1 for calling the StaticPredictions obj's underlying member method code with example usage: obj.key_fn(example) and returns: caching