code: def _get_fake_executor(label: str):
      class _FakeExecutor(base_executor.BaseExecutor):
          def Do(
              self,
              input_dict: Dict[str, List[types.Artifact]],
              output_dict: Dict[str, List[types.Artifact]],
              exec_properties: Dict[str, Any],
          ):
              _executed_components.append(label)
  
      return _FakeExecutor
  
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 1 for calling a global function with example usage: _get_fake_executor(label) and returns: _FakeExecutor