code: def launch_container_component(
      component: base_node.BaseNode,
      component_launcher_class: Type[
          base_component_launcher.BaseComponentLauncher
      ],
      component_config: base_component_config.BaseComponentConfig,
      pipeline: tfx_pipeline.Pipeline,
  ):
      """Use the kubernetes component launcher to launch the component.
  
      Args:
        component: Container component to be executed.
        component_launcher_class: The class of the launcher to launch the component.
        component_config: component config to launch the component.
        pipeline: Logical pipeline that contains pipeline related information.
      """
      driver_args = data_types.DriverArgs(
          enable_cache=pipeline.enable_cache
      )
      metadata_connection = metadata.Metadata(
          pipeline.metadata_connection_config
      )
  
      component_launcher = component_launcher_class.create(
          component=component,
          pipeline_info=pipeline.pipeline_info,
          driver_args=driver_args,
          metadata_connection=metadata_connection,
          beam_pipeline_args=pipeline.beam_pipeline_args,
          additional_pipeline_args=pipeline.additional_pipeline_args,
          component_config=component_config,
      )
      logging.info("Component %s is running.", component.id)
      component_launcher.launch()
      logging.info("Component %s is finished.", component.id)
  
imports: import datetime
  import json
  from typing import List, Optional, Type
  from absl import logging
  from tfx.dsl.component.experimental import container_component
  from tfx.dsl.components.base import base_node
  from tfx.orchestration import data_types
  from tfx.orchestration import metadata
  from tfx.orchestration import pipeline
  from tfx.orchestration import tfx_runner
  from tfx.orchestration.config import base_component_config
  from tfx.orchestration.config import config_utils
  from tfx.orchestration.config import pipeline_config
  from tfx.orchestration.experimental.kubernetes import kubernetes_remote_runner
  from tfx.orchestration.experimental.kubernetes import node_wrapper
  from tfx.orchestration.launcher import base_component_launcher
  from tfx.orchestration.launcher import in_process_component_launcher
  from tfx.orchestration.launcher import kubernetes_component_launcher
  from tfx.utils import json_utils
  from tfx.utils import kube_utils
  from tfx.utils import name_utils
  from google.protobuf import json_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: launch_container_component(component, component_launcher_class, component_config, pipeline) without return types