code: def test_construct_arguments_with_unexpected_kwargs_raises_typeerror(
      function,
  ):
      kwargs = {"zimbabwe": 23}
      unexpected = re.compile(".*unexpected.*zimbabwe.*")
      with pytest.raises(TypeError) as excinfo:
          Signature(function).construct_arguments([], kwargs, {})
      assert unexpected.match(excinfo.value.args[0])
  
imports: from __future__ import division, print_function
  import re
  import pytest
  from sacred.config.signature import Signature
  from sacred.utils import MissingConfigError
label_desc: Use image node_id 18 for calling a global function with example usage: test_construct_arguments_with_unexpected_kwargs_raises_typeerror(function) without return types