code: def test_raises_type_error(self):
      with self.assertRaisesRegex(TypeError, "should be a callable"):
          function_utils.has_kwargs("not a function")
  
imports: import functools
  from tensorflow.python.platform import test
  from tensorflow.python.util import function_utils
label_desc: Use image node_id 6 for calling the HasKwargsTest obj's underlying member method code with example usage: obj.test_raises_type_error() without return types