code: def test_parse_kwargs(self):
      def test(**kwargs):
          return parse_kwargs(kwargs, ("foo", 1), ("bar", 2))
  
      self.assertEqual(test(), (1, 2))
      self.assertEqual(test(bar=1, foo=2), (2, 1))
  
      re = r"test\(\) got unexpected keyword argument\(s\) \'ham\', \'spam\'"
      with six.assertRaisesRegex(self, TypeError, re):
          test(spam=1, ham=2)
  
imports: import unittest
  import six
  from chainer import testing
  from chainer.utils.argument import parse_kwargs
label_desc: Use image node_id 1 for calling the TestArgument obj's underlying member method code with example usage: obj.test_parse_kwargs() and returns: parse_kwargs