class_docstr: The base class of all executor operators.
docstr: Constructor.
  
  Args:
    driver_spec: The specification of how to initialize the driver.
    mlmd_connection: ML metadata connection.
  
  Raises:
    RuntimeError: if the driver_spec is not supported.
code: def __init__(
      self,
      driver_spec: message.Message,
      mlmd_connection: metadata.Metadata,
  ):
      """Constructor.
  
      Args:
        driver_spec: The specification of how to initialize the driver.
        mlmd_connection: ML metadata connection.
  
      Raises:
        RuntimeError: if the driver_spec is not supported.
      """
      if not isinstance(
          driver_spec,
          tuple(t for t in self.SUPPORTED_EXECUTABLE_SPEC_TYPE),
      ):
          raise RuntimeError(
              "Driver spec not supported: %s" % driver_spec
          )
      self._driver_spec = driver_spec
      self._mlmd_connection = mlmd_connection
  
file_path: tfx/tfx/orchestration/portable/base_driver_operator.py
imports: import abc
  from tfx.orchestration import metadata
  from tfx.orchestration.portable import data_types
  from tfx.proto.orchestration import driver_output_pb2
  from tfx.utils import abc_utils
  from google.protobuf import message
label_desc: Use image node_id 1 to create a new BaseDriverOperator object from inherited base classes: abc with example: obj = BaseDriverOperator(driver_spec, mlmd_connection)