docstr: Test deprecated decorator with `since` and `removed` set.
docstr_tok: ["Test","deprecated","decorator","with","`","since","`","and","`","removed","`","set","."]
code: def test_class_warning2(self):
      """Test deprecated decorator with `since` and `removed` set."""
  
      @deprecated(
          since=self.prev_version,
          removed=self.next_version,
          version_val=self.test_version,
      )
      class Foo2:
          pass
  
      self.assertWarns(FutureWarning, Foo2)
  
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 7 for calling the TestDeprecated obj's underlying member method code with example usage: obj.test_class_warning2() without return types