docstr: Tests a function that unexpectedly accepts **kwargs.
docstr_tok: ["Tests","a","function","that","unexpectedly","accepts","*","*","kwargs","."]
code: def test_unexpected_kwargs(self):
      """
      Tests a function that unexpectedly accepts **kwargs.
      """
  
      def f(**kwargs):
          pass
  
      with self.assertRaises(UnexpectedKwargs):
          verify_callable_argspec(f, expect_kwargs=False)
  
imports: from unittest import TestCase
  from catalyst.utils.argcheck import verify_callable_argspec, Argument, NoStarargs, UnexpectedStarargs, NoKwargs, UnexpectedKwargs, NotCallable, NotEnoughArguments, TooManyArguments, MismatchedArguments
label_desc: Use image node_id 8 for calling the TestArgCheck obj's underlying member method code with example usage: obj.test_unexpected_kwargs() without return types