class_docstr: Responsible for launching a container executor.
class_docstr_tok: ["Responsible","for","launching","a","container","executor","."]
docstr: Checks if the launcher can launch the executor spec.
docstr_tok: ["Checks","if","the","launcher","can","launch","the","executor","spec","."]
code: def can_launch(
      cls,
      component_executor_spec: executor_spec.ExecutorSpec,
      component_config: base_component_config.BaseComponentConfig,
  ) -> bool:
      """Checks if the launcher can launch the executor spec."""
      if component_config and not isinstance(
          component_config,
          docker_component_config.DockerComponentConfig,
      ):
          return False
  
      return isinstance(
          component_executor_spec,
          (
              executor_spec.ExecutorContainerSpec,
              executor_specs.TemplatedExecutorContainerSpec,
          ),
      )
  
file_path: tfx/tfx/orchestration/launcher/docker_component_launcher.py
imports: from typing import Any, Dict, List, cast
  import absl
  import docker
  from tfx import types
  from tfx.dsl.component.experimental import executor_specs
  from tfx.dsl.components.base import executor_spec
  from tfx.orchestration.config import base_component_config
  from tfx.orchestration.config import docker_component_config
  from tfx.orchestration.launcher import base_component_launcher
  from tfx.orchestration.launcher import container_common
label_desc: Use image node_id 1 for calling the DockerComponentLauncher obj's underlying member method code with example usage: obj.can_launch(cls, component_executor_spec, component_config) and returns: isinstance, False