code: def _validate_constructor(
      node: SchemaNode, create_fn_params: Dict[Text, ParameterInfo]
  ) -> None:
      _validate_types_of_reserved_keywords(
          create_fn_params, node, node.constructor_name
      )
  
      required_args = _required_args(create_fn_params)
  
      if required_args and node.eager:
          raise GraphSchemaValidationException(
              f"Your model uses a component '{node.uses.__name__}' which has a "
              f"method '{node.constructor_name}' which has required parameters "
              f"('{', '.join(required_args)}'). "
              f"Extra parameters can only be supplied to the constructor method which is "
              f"used during training."
              f"See {DOCS_URL_GRAPH_COMPONENTS} for more information."
          )
  
      for param_name in _required_args(create_fn_params):
          if not node.eager and param_name not in node.needs:
              raise GraphSchemaValidationException(
                  f"Your model uses a component '{node.uses.__name__}' which "
                  f"needs the param '{param_name}' to be provided to its method "
                  f"'{node.constructor_name}'. Please make sure that you registered "
                  f"your component correctly and and that your model configuration is "
                  f"valid."
                  f"See {DOCS_URL_GRAPH_COMPONENTS} for more information."
              )
  
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 18 for calling a global function with example usage: _validate_constructor(node, create_fn_params) without return types