code: def testComponentExecutorClass(self):
      class InvalidExecutorComponent(
          base_beam_component.BaseBeamComponent
      ):
          EXECUTOR_SPEC = executor_spec.ExecutorClassSpec(
              base_executor.BaseExecutor
          )
          SPEC_CLASS = _EmptyComponentSpec
  
      with self.assertRaisesRegex(
          TypeError,
          "expects EXECUTOR_SPEC property to be an instance of "
          "BeamExecutorSpec",
      ):
          InvalidExecutorComponent._validate_component_class()
  
file_path: tfx/tfx/dsl/components/base/base_beam_component_test.py
imports: import tensorflow
  from tfx import types
  from tfx.dsl.components.base import base_beam_component
  from tfx.dsl.components.base import base_beam_executor
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
label_desc: Use image node_id 2 for calling the ComponentTest obj's underlying member method code with example usage: obj.testComponentExecutorClass() without return types