class_docstr: Holds the precomputed values of a `GraphNode` from a previous training.
  
  Pre-computed values can either be
  - values loaded from cache
  - values which were provided during the fingerprint run by input nodes
docstr: Updates a `SchemaNode` to use a `PrecomputedValueProvider`.
  
  This is for when we want to use the precomputed output value of a node from a
  previous training in a subsequent training. We replace the class in the `uses`
  of the node to a be a `PrecomputedValueProvider` configured to return the
  precomputed value.
  
  Args:
      node: The node to update.
      output: precomputed cached output that the `PrecomputedValueProvider` will
      return.
docstr_tok: ["Updates","a","`","SchemaNode","`","to","use","a","`","PrecomputedValueProvider","`",".","This","is","for","when","we","want","to","use","the","precomputed","output","value","of","a","node","from","a","previous","training","in","a","subsequent","training",".","We","replace","the","class","in","the","`","uses","`","of","the","node","to","a","be","a","`","PrecomputedValueProvider","`","configured","to","return","the","precomputed","value",".","Args",":","node",":","The","node","to","update",".","output",":","precomputed","cached","output","that","the","`","PrecomputedValueProvider","`","will","return","."]
code: def replace_schema_node(cls, node: SchemaNode, output: Any) -> None:
      """Updates a `SchemaNode` to use a `PrecomputedValueProvider`.
  
      This is for when we want to use the precomputed output value of a node from a
      previous training in a subsequent training. We replace the class in the `uses`
      of the node to a be a `PrecomputedValueProvider` configured to return the
      precomputed value.
  
      Args:
          node: The node to update.
          output: precomputed cached output that the `PrecomputedValueProvider` will
          return.
      """
      node.uses = cls
      node.config = {"output": output}
      node.fn = cls.get_value.__name__
      node.constructor_name = cls.create.__name__
  
imports: from __future__ import annotations
  from typing import Any, Dict, Optional, Text, Type
  import dataclasses
  import uuid
  from rasa.engine.caching import Cacheable, TrainingCache
  from rasa.engine.graph import ExecutionContext, GraphComponent, SchemaNode
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.training import fingerprinting
label_desc: Use image node_id 4 for calling the PrecomputedValueProvider obj's underlying member method code with example usage: obj.replace_schema_node(cls, node, output) without return types