code: def test_deprecate_function(self):
      from small_text.utils.annotations import deprecated
  
      @deprecated(deprecated_in="1.0.0")
      def myfunc(somearg, other=123):
          return somearg == "foo" and other == 123
  
      with self.assertWarnsRegex(
          DeprecationWarning,
          r"The function myfunc has been deprecated in 1\.0\.0\.",
      ):
          self.assertTrue(myfunc("foo"))
  
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 5 for calling the DeprecationUtilsTest obj's underlying member method code with example usage: obj.test_deprecate_function() and returns: unknown