code: def test_non_async_in_async():
      """
      This example doesn't work with FAILING_EXAMPLES, because the line numbers
      are not always the same / incorrect in Python 3.8.
      """
      # Raises multiple errors in previous versions.
      code = "async def foo():\n def nofoo():[x async for x in []]"
      wanted, line_nr = _get_actual_exception(code)
  
      errors = _get_error_list(code)
      if errors:
          (error,) = errors
          actual = error.message
      assert actual in wanted
      if sys.version_info[:2] not in ((3, 8), (3, 9)):
          assert line_nr == error.start_pos[0]
      else:
          assert line_nr == 0
  
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 4 for calling a global function with example usage: test_non_async_in_async() without return types