code: def as_pipeline(*components) -> List[Dict[Text, Dict]]:
      return [
          {"name": c, **get_test_params_for_component(c)}
          if isinstance(c, str)
          else c
          for c in components
      ]
  
imports: from pathlib import Path
  import pytest
  from _pytest.tmpdir import TempPathFactory
  from rasa.core.agent import Agent
  from rasa.core.policies.policy import Policy
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  from rasa.shared.nlu.training_data.formats import RasaYAMLReader
  from rasa.utils.tensorflow.constants import EPOCHS, RUN_EAGERLY
  from typing import Any, Dict, List, Tuple, Text, Union, Optional
  import rasa.model_training
  import rasa.shared.utils.io
  import rasa.engine.recipes.default_components
label_desc: Use image node_id 2 for calling a global function with example usage: as_pipeline() and returns: unknown