code: def test_num_threads_interpolation():
      expected_schema_as_dict = rasa.shared.utils.io.read_yaml_file(
          "data/graph_schemas/config_pretrained_embeddings_mitie_train_schema.yml"
      )
      expected_train_schema = GraphSchema.from_dict(
          expected_schema_as_dict
      )
  
      expected_schema_as_dict = rasa.shared.utils.io.read_yaml_file(
          "data/graph_schemas/config_pretrained_embeddings_mitie_predict_schema.yml"
      )
      expected_predict_schema = GraphSchema.from_dict(
          expected_schema_as_dict
      )
  
      for node_name, node in expected_train_schema.nodes.items():
          if issubclass(
              node.uses,
              (
                  SklearnIntentClassifier,
                  MitieEntityExtractor,
                  MitieIntentClassifier,
              ),
          ) and node_name.startswith("train_"):
              node.config["num_threads"] = 20
  
      config = rasa.shared.utils.io.read_yaml_file(
          "data/test_config/config_pretrained_embeddings_mitie.yml"
      )
  
      recipe = Recipe.recipe_for_name(DefaultV1Recipe.name)
      model_config = recipe.graph_config_for_recipe(
          config, {"num_threads": 20}
      )
  
      train_schema = model_config.train_schema
      for node_name, node in expected_train_schema.nodes.items():
          assert train_schema.nodes[node_name] == node
  
      assert train_schema == expected_train_schema
  
      predict_schema = model_config.predict_schema
      for node_name, node in expected_predict_schema.nodes.items():
          assert predict_schema.nodes[node_name] == node
  
      assert predict_schema == expected_predict_schema
  
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 7 for calling a global function with example usage: test_num_threads_interpolation() without return types