class_docstr: Responsible for launching driver, executor and publisher of component.
docstr: Initialize a ComponentLauncher directly from a BaseComponent instance.
  
  This class method is the contract between `TfxRunner` and
  `BaseComponentLauncher` to support launcher polymorphism. Sublcass of this
  class must make sure it can be initialized by the method.
  
  Args:
    component: The component to launch.
    pipeline_info: An instance of data_types.PipelineInfo that holds pipeline
      properties.
    driver_args: An instance of data_types.DriverArgs that holds component
      specific driver args.
    metadata_connection: ML metadata connection. The connection is expected to
      not be opened when given to this object.
    beam_pipeline_args: Pipeline arguments for Beam powered Components.
    additional_pipeline_args: Additional pipeline args.
    component_config: Optional component specific config to instrument
      launcher on how to launch a component.
  
  Returns:
    A new instance of component launcher.
docstr_tok: ["Initialize","a","ComponentLauncher","directly","from","a","BaseComponent","instance",".","This","class","method","is","the","contract","between","`","TfxRunner","`","and","`","BaseComponentLauncher","`","to","support","launcher","polymorphism",".","Sublcass","of","this","class","must","make","sure","it","can","be","initialized","by","the","method",".","Args",":","component",":","The","component","to","launch",".","pipeline_info",":","An","instance","of","data_types.PipelineInfo","that","holds","pipeline","properties",".","driver_args",":","An","instance","of","data_types.DriverArgs","that","holds","component","specific","driver","args",".","metadata_connection",":","ML","metadata","connection",".","The","connection","is","expected","to","not","be","opened","when","given","to","this","object",".","beam_pipeline_args",":","Pipeline","arguments","for","Beam","powered","Components",".","additional_pipeline_args",":","Additional","pipeline","args",".","component_config",":","Optional","component","specific","config","to","instrument","launcher","on","how","to","launch","a","component",".","Returns",":","A","new","instance","of","component","launcher","."]
code: def create(
      cls,
      component: base_node.BaseNode,
      pipeline_info: data_types.PipelineInfo,
      driver_args: data_types.DriverArgs,
      metadata_connection: metadata.Metadata,
      beam_pipeline_args: List[str],
      additional_pipeline_args: Dict[str, Any],
      component_config: Optional[
          base_component_config.BaseComponentConfig
      ] = None,
  ) -> "BaseComponentLauncher":
      """Initialize a ComponentLauncher directly from a BaseComponent instance.
  
      This class method is the contract between `TfxRunner` and
      `BaseComponentLauncher` to support launcher polymorphism. Sublcass of this
      class must make sure it can be initialized by the method.
  
      Args:
        component: The component to launch.
        pipeline_info: An instance of data_types.PipelineInfo that holds pipeline
          properties.
        driver_args: An instance of data_types.DriverArgs that holds component
          specific driver args.
        metadata_connection: ML metadata connection. The connection is expected to
          not be opened when given to this object.
        beam_pipeline_args: Pipeline arguments for Beam powered Components.
        additional_pipeline_args: Additional pipeline args.
        component_config: Optional component specific config to instrument
          launcher on how to launch a component.
  
      Returns:
        A new instance of component launcher.
      """
      return cls(
          component=component,
          pipeline_info=pipeline_info,
          driver_args=driver_args,
          metadata_connection=metadata_connection,
          beam_pipeline_args=beam_pipeline_args,
          additional_pipeline_args=additional_pipeline_args,
          component_config=component_config,
      )
  
imports: import abc
  import copy
  from typing import Any, Dict, List, Optional, cast
  import absl
  from tfx import types
  from tfx.dsl.components.base import base_node
  from tfx.dsl.components.base import executor_spec
  from tfx.dsl.components.common import resolver
  from tfx.orchestration import data_types
  from tfx.orchestration import metadata
  from tfx.orchestration import publisher
  from tfx.orchestration.config import base_component_config
  from tfx.orchestration.portable import data_types
label_desc: Use image node_id 2 for calling the BaseComponentLauncher obj's underlying member method code with example usage: obj.create(cls, component, pipeline_info, driver_args, metadata_connection, beam_pipeline_args, additional_pipeline_args, component_config) and returns: cls