code: def test_cached_component_returns_value_from_cache(
      default_model_storage: ModelStorage,
  ):
      cached_output = CacheableText("Cache me!!")
  
      node = GraphNode(
          node_name="cached",
          component_class=PrecomputedValueProvider,
          constructor_name="create",
          component_config={"output": cached_output},
          fn_name="get_value",
          inputs={},
          eager=False,
          model_storage=default_model_storage,
          resource=None,
          execution_context=ExecutionContext(GraphSchema({}), "1"),
      )
  
      node_name, returned_output = node()
  
      assert node_name == "cached"
      assert returned_output.text == "Cache me!!"
  
file_path: rasa/tests/engine/training/test_components.py
imports: import dataclasses
  from typing import Text
  import uuid
  from rasa.engine.caching import TrainingCache
  from rasa.engine.graph import ExecutionContext, GraphNode, GraphSchema, SchemaNode
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.training import fingerprinting
  from rasa.engine.training.components import PrecomputedValueProvider, FingerprintComponent, FingerprintStatus
  from tests.engine.graph_components_test_classes import CacheableText
label_desc: Use image node_id 1 for calling a global function with example usage: test_cached_component_returns_value_from_cache(default_model_storage) without return types