docstr: Test deprecated decorator raises exception with no versions set.
docstr_tok: ["Test","deprecated","decorator","raises","exception","with","no","versions","set","."]
code: def test_class_except1(self):
      """Test deprecated decorator raises exception with no versions set."""
  
      @deprecated(version_val=self.test_version)
      class Foo3:
          pass
  
      self.assertRaises(DeprecatedError, Foo3)
  
imports: from __future__ import annotations
  import unittest
  import warnings
  from monai.utils import DeprecatedError, deprecated, deprecated_arg, deprecated_arg_default
label_desc: Use image node_id 8 for calling the TestDeprecated obj's underlying member method code with example usage: obj.test_class_except1() without return types