code: def test_if_stmt():
      module = parse("if x: f.\nelse: g(")
      if_stmt = module.children[0]
      assert if_stmt.type == "if_stmt"
      if_, test, colon, f = if_stmt.children
      assert f.type == "error_node"
      assert f.children[0].value == "f"
      assert f.children[1].value == "."
  
      assert module.children[1].type == "newline"
      assert module.children[1].value == "\n"
      assert module.children[2].type == "error_leaf"
      assert module.children[2].value == "else"
      assert module.children[3].type == "error_leaf"
      assert module.children[3].value == ":"
  
      in_else_stmt = module.children[4]
      assert in_else_stmt.type == "error_node"
      assert in_else_stmt.children[0].value == "g"
      assert in_else_stmt.children[1].value == "("
  
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 4 for calling a global function with example usage: test_if_stmt() without return types