code: def test_error_token_after_dedent():
      code = dedent(
          """\
          class C:
              pass
          $foo
          """
      )
      lst = _get_token_list(code)
      expected = [
          NAME,
          NAME,
          OP,
          NEWLINE,
          INDENT,
          NAME,
          NEWLINE,
          DEDENT,
          # $foo\n
          ERRORTOKEN,
          NAME,
          NEWLINE,
          ENDMARKER,
      ]
      assert [t.type for t in lst] == expected
  
imports: import sys
  from textwrap import dedent
  import pytest
  from parso.utils import split_lines, parse_version_string
  from parso.python.token import PythonTokenTypes
  from parso.python import tokenize
  from parso import parse
  from parso.python.tokenize import PythonToken
label_desc: Use image node_id 18 for calling a global function with example usage: test_error_token_after_dedent() without return types