code: def testComponentSpecType(self):
      with self.assertRaisesRegex(
          ValueError,
          'expects "spec" argument to be an instance of types.ComponentSpec',
      ):
          _ = _BasicComponent(spec=object())
  
imports: import tensorflow
  from tfx import types
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
  from tfx.proto import example_gen_pb2
  from tfx.types import component_spec
  from tfx.types.system_executions import SystemExecution
  from tfx.utils import json_utils
label_desc: Use image node_id 3 for calling the ComponentTest obj's underlying member method code with example usage: obj.testComponentSpecType() without return types