code: def _validate_run_fn_return_type(
      node: SchemaNode, return_type: Type, is_training: bool
  ) -> None:
      if return_type == inspect.Parameter.empty:
          raise GraphSchemaValidationException(
              f"Your model uses a component '{node.uses.__name__}' whose "
              f"method '{node.fn}' does not have a type annotation for "
              f"its return value. Type annotations are required for all "
              f"components to validate your model's structure."
              f"See {DOCS_URL_GRAPH_COMPONENTS} for more information."
          )
  
      # TODO: Handle forward references here
      if typing_utils.issubtype(return_type, list):
          return_type = typing_utils.get_args(return_type)[0]
  
      if is_training and not isinstance(return_type, Fingerprintable):
          raise GraphSchemaValidationException(
              f"Your model uses a component '{node.uses.__name__}' whose method "
              f"'{node.fn}' does not return a fingerprintable "
              f"output. This is required for proper caching between model trainings. "
              f"Please make sure you're using a return type which implements the "
              f"'{Fingerprintable.__name__}' protocol."
          )
  
imports: import inspect
  import logging
  import typing
  from typing import Optional, Callable, Text, Tuple, Dict, Type, Any, Set, Union, TypeVar, List
  import dataclasses
  from rasa.core.policies.policy import PolicyPrediction
  from rasa.engine.training.fingerprinting import Fingerprintable
  import rasa.utils.common
  import typing_utils
  from rasa.engine.exceptions import GraphSchemaValidationException
  from rasa.engine.graph import GraphSchema, GraphComponent, SchemaNode, ExecutionContext, GraphModelConfiguration
  from rasa.engine.constants import RESERVED_PLACEHOLDERS
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.constants import DOCS_URL_GRAPH_COMPONENTS
  from rasa.shared.exceptions import RasaException
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 16 for calling a global function with example usage: _validate_run_fn_return_type(node, return_type, is_training) without return types