code: def test_named_arguments(msg):
      assert m.kw_func0(5, 10) == "x=5, y=10"
  
      assert m.kw_func1(5, 10) == "x=5, y=10"
      assert m.kw_func1(5, y=10) == "x=5, y=10"
      assert m.kw_func1(y=10, x=5) == "x=5, y=10"
  
      assert m.kw_func2() == "x=100, y=200"
      assert m.kw_func2(5) == "x=5, y=200"
      assert m.kw_func2(x=5) == "x=5, y=200"
      assert m.kw_func2(y=10) == "x=100, y=10"
      assert m.kw_func2(5, 10) == "x=5, y=10"
      assert m.kw_func2(x=5, y=10) == "x=5, y=10"
  
      with pytest.raises(TypeError) as excinfo:
          # noinspection PyArgumentList
          m.kw_func2(x=5, y=10, z=12)
      assert excinfo.match(
          r"(?s)^kw_func2\(\): incompatible.*Invoked with: kwargs: ((x=5|y=10|z=12)(, |$))"
          + "{3}$"
      )
  
      assert m.kw_func4() == "{13 17}"
      assert m.kw_func4(myList=[1, 2, 3]) == "{1 2 3}"
  
      assert m.kw_func_udl(x=5, y=10) == "x=5, y=10"
      assert m.kw_func_udl_z(x=5) == "x=5, y=0"
  
file_path: coremltools/deps/pybind11/tests/test_kwargs_and_defaults.py
imports: import pytest
  from pybind11_tests import kwargs_and_defaults
label_desc: Use image node_id 2 for calling a global function with example usage: test_named_arguments(msg) without return types