code: def test_one_line_function(each_version):
      module = parse("def x(): f.", version=each_version)
      assert module.children[0].type == "funcdef"
      def_, name, parameters, colon, f = module.children[0].children
      assert f.type == "error_node"
  
      module = parse("def x(a:", version=each_version)
      func = module.children[0]
      assert func.type == "error_node"
      if each_version.startswith("2"):
          assert func.children[-1].value == "a"
      else:
          assert func.children[-1] == ":"
  
file_path: catboost/contrib/python/parso/py3/tests/test_error_recovery.py
imports: from textwrap import dedent
  from parso import parse, load_grammar
label_desc: Use image node_id 2 for calling a global function with example usage: test_one_line_function(each_version) without return types