code: def test_deprecated_invalid_usage(self):
      with self.assertRaisesRegex(
          ValueError, r"Keyword argument \'deprecated_in\' must be set."
      ):
  
          @deprecated()
          def func():
              pass
  
      with self.assertRaisesRegex(
          ValueError, r"Keyword argument \'deprecated_in\' must be set."
      ):
  
          @deprecated
          def another_func():
              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 2 for calling the DeprecationUtilsTest obj's underlying member method code with example usage: obj.test_deprecated_invalid_usage() without return types