code: def test_incomplete_list_comprehension(each_version):
      """Shouldn't raise an error, same bug as #418."""
      # With the old parser this actually returned a statement. With the new
      # parser only valid statements generate one.
      children = parse("(1 for def", version=each_version).children
      assert [c.type for c in children] == [
          "error_node",
          "error_node",
          "endmarker",
      ]
  
imports: from textwrap import dedent
  import pytest
  from parso import parse
  from parso.python import tree
  from parso.utils import split_lines
label_desc: Use image node_id 6 for calling a global function with example usage: test_incomplete_list_comprehension(each_version) without return types