code: def test_named_argument_issues(works_not_in_py):
      message = works_not_in_py.get_error_message(
          "def foo(*, **dict): pass"
      )
      message = works_not_in_py.get_error_message("def foo(*): pass")
      if works_not_in_py.version.startswith("2"):
          assert message == "SyntaxError: invalid syntax"
      else:
          assert (
              message
              == "SyntaxError: named arguments must follow bare *"
          )
  
      works_not_in_py.assert_no_error_in_passing(
          "def foo(*, name): pass"
      )
      works_not_in_py.assert_no_error_in_passing(
          "def foo(bar, *, name=1): pass"
      )
      works_not_in_py.assert_no_error_in_passing(
          "def foo(bar, *, name=1, **dct): pass"
      )
  
imports: import sys
  import warnings
  import pytest
  import parso
  from textwrap import dedent
  from parso._compatibility import is_pypy
  from .failing_examples import FAILING_EXAMPLES, indent, build_nested
label_desc: Use image node_id 11 for calling a global function with example usage: test_named_argument_issues(works_not_in_py) without return types