code: def test_class_failure_of_removal(self, get_version_mock):
      get_version_mock.return_value = version.parse("10.0.0")
  
      with self.assertRaisesRegex(
          DeprecationError,
          r"The class NewClass should have been removed "
          r"before version 10\.0\.0\.",
      ):
  
          @deprecated(deprecated_in="1.0.0", to_be_removed_in="2.0.0")
          class NewClass(object):
              pass
  
imports: import unittest
  from packaging import version
  from unittest.mock import patch
  from small_text.utils.annotations import deprecated, experimental, DeprecationError, ExperimentalWarning
label_desc: Use image node_id 4 for calling the DeprecationUtilsTest obj's underlying member method code with example usage: obj.test_class_failure_of_removal(get_version_mock) without return types