code: def test_register_component():
      @DefaultV1Recipe.register(
          DefaultV1Recipe.ComponentType.MESSAGE_TOKENIZER,
          is_trainable=True,
          model_from="Herman",
      )
      class MyClassGraphComponent(GraphComponent):
          @classmethod
          def create(
              cls,
              config: Dict[Text, Any],
              model_storage: ModelStorage,
              resource: Resource,
              execution_context: ExecutionContext,
          ) -> GraphComponent:
              return cls()
  
      assert DefaultV1Recipe._from_registry(
          MyClassGraphComponent.__name__
      ) == DefaultV1Recipe.RegisteredComponent(
          MyClassGraphComponent,
          {DefaultV1Recipe.ComponentType.MESSAGE_TOKENIZER},
          True,
          "Herman",
      )
      assert MyClassGraphComponent()
  
imports: from typing import Text, Dict, Any, Set, List
  import shutil
  import pytest
  from _pytest.capture import CaptureFixture
  from pathlib import Path
  from rasa.engine.constants import PLACEHOLDER_TRACKER
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.nlu.training_data.message import Message
  import rasa.shared.utils.io
  from rasa.shared.constants import ASSISTANT_ID_KEY, CONFIG_AUTOCONFIGURABLE_KEYS
  from rasa.core.policies.ted_policy import TEDPolicy
  from rasa.engine.graph import GraphSchema, GraphComponent, ExecutionContext
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe, DefaultV1RecipeRegisterException
  from rasa.engine.recipes.recipe import Recipe
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.graph_components.validators.default_recipe_validator import DefaultV1RecipeValidator
  from rasa.nlu.classifiers.mitie_intent_classifier import MitieIntentClassifier
  from rasa.nlu.classifiers.sklearn_intent_classifier import SklearnIntentClassifier
  from rasa.nlu.extractors.mitie_entity_extractor import MitieEntityExtractor
  from rasa.shared.exceptions import InvalidConfigException
  from rasa.shared.data import TrainingType
  import rasa.engine.validation
  from rasa.shared.importers.rasa import RasaFileImporter
label_desc: Use image node_id 10 for calling a global function with example usage: test_register_component() and returns: cls