code: def testInvalidOutputSpec(self):
      with self.assertRaises(Exception):
          _x = OutputSpec()
  
      with self.assertRaises(Exception):
          _x = OutputSpec(
              dataType="int", count=4, isDefaultOutput="Sure"
          )
  
      with self.assertRaises(Exception):
          _x = OutputSpec(description=555, dataType="int", count=4)
  
file_path: nupic-legacy/tests/unit/nupic/regions/regions_spec_test.py
imports: import unittest2
  from nupic.regions.spec import Spec, InputSpec, OutputSpec, ParameterSpec, CommandSpec
label_desc: Use image node_id 3 for calling the KNNAnomalyClassifierRegionTest obj's underlying member method code with example usage: obj.testInvalidOutputSpec() without return types