code: def testNotImplementedError(self):
      with self.assertRaisesRegex(
          NotImplementedError,
          "_TestSpecWithoutEncode does not support encoding into IR.",
      ):
          _TestSpecWithoutEncode().encode()
  
file_path: tfx/tfx/dsl/components/base/executor_spec_test.py
imports: import tensorflow
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
label_desc: Use image node_id 1 for calling the ExecutorSpecTest obj's underlying member method code with example usage: obj.testNotImplementedError() without return types