code: def _get_fake_component(spec: types.ComponentSpec):
      component_id = spec.__class__.__name__.replace(
          "_FakeComponentSpec", ""
      ).lower()
      label = "_FakeComponent.%s" % component_id
  
      class _FakeComponent(base_component.BaseComponent):
          SPEC_CLASS = types.ComponentSpec
          EXECUTOR_SPEC = executor_spec.ExecutorClassSpec(
              _get_fake_executor(label)
          )
  
      return _FakeComponent(spec=spec).with_id(component_id)
  
imports: import os
  import tempfile
  from typing import Any, Dict, List
  import absl.testing.absltest
  from tfx import types
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
  from tfx.orchestration import pipeline
  from tfx.orchestration.config import pipeline_config
  from tfx.orchestration.launcher import docker_component_launcher
  from tfx.orchestration.local.legacy import local_dag_runner
  from tfx.orchestration.metadata import sqlite_metadata_connection_config
  from tfx.types.component_spec import ChannelParameter
label_desc: Use image node_id 2 for calling a global function with example usage: _get_fake_component(spec) and returns: _FakeComponent