class_docstr: The base class of all executor operators.
docstr: Constructor.
  
  Args:
    executor_spec: The specification of how to initialize the executor.
    platform_config: The specification of how to allocate resource for the
      executor.
    pipeline_platform_config: Pipeline-level context information.
  
  Raises:
    RuntimeError: if the executor_spec or platform_config is not supported.
code: def __init__(
      self,
      executor_spec: message.Message,
      platform_config: Optional[message.Message] = None,
      pipeline_platform_config: Optional[message.Message] = None,
  ):
      """Constructor.
  
      Args:
        executor_spec: The specification of how to initialize the executor.
        platform_config: The specification of how to allocate resource for the
          executor.
        pipeline_platform_config: Pipeline-level context information.
  
      Raises:
        RuntimeError: if the executor_spec or platform_config is not supported.
      """
      if not isinstance(
          executor_spec,
          tuple(t for t in self.SUPPORTED_EXECUTOR_SPEC_TYPE),
      ):
          raise RuntimeError(
              "Executor spec not supported: %s" % executor_spec
          )
      if platform_config and not isinstance(
          platform_config,
          tuple(t for t in self.SUPPORTED_PLATFORM_CONFIG_TYPE),
      ):
          raise RuntimeError(
              "Platform spec not supported: %s" % platform_config
          )
      self._executor_spec = executor_spec
      self._platform_config = platform_config
      self._pipeline_platform_config = pipeline_platform_config
      self._execution_watcher_address = None
  
file_path: tfx/tfx/orchestration/portable/base_executor_operator.py
imports: import abc
  from typing import Optional
  from tfx.orchestration.portable import data_types
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.utils import abc_utils
  from google.protobuf import message
label_desc: Use image node_id 1 to create a new BaseExecutorOperator object from inherited base classes: abc with example: obj = BaseExecutorOperator(executor_spec, platform_config, pipeline_platform_config)