code: def testNoSpuriousAttrs(self):
      test_options = _TestOptions()
  
      with self.assertRaisesRegex(
          AttributeError,
          "Cannot set the property wrong_attr on _TestOptions.",
      ):
          test_options.wrong_attr = True
      with self.assertRaises(AttributeError):
          _ = test_options.wrong_attr
  
imports: from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.util import options
  from tensorflow.python.framework import combinations
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the OptionsTest obj's underlying member method code with example usage: obj.testNoSpuriousAttrs() without return types