code: def test_annotations_forbidden(self):
      with self.assertRaises(SyntaxError):
          self._exec_future("test: (yield)")
  
      with self.assertRaises(SyntaxError):
          self._exec_future("test.test: (yield a + b)")
  
      with self.assertRaises(SyntaxError):
          self._exec_future("test[something]: (yield from x)")
  
      with self.assertRaises(SyntaxError):
          self._exec_future(
              "def func(test: (yield from outside_of_generator)): pass"
          )
  
      with self.assertRaises(SyntaxError):
          self._exec_future("def test() -> (await y): pass")
  
      with self.assertRaises(SyntaxError):
          self._exec_future(
              "async def test() -> something((a := b)): pass"
          )
  
      with self.assertRaises(SyntaxError):
          self._exec_future(
              "test: await some.complicated[0].call(with_args=True or 1 is not 1)"
          )
  
      with self.assertRaises(SyntaxError):
          self._exec_future("test: f'{(x := 10):=10}'")
  
      with self.assertRaises(SyntaxError):
          self._exec_future(
              dedent(
                  """\
              def foo():
                  def bar(arg: (yield)): pass
              """
              )
          )
  
imports: import __future__
  import ast
  import unittest
  from test.support import import_helper
  from test.support.script_helper import spawn_python, kill_python
  from textwrap import dedent
  import os
  import re
  import sys
label_desc: Use image node_id 9 for calling the AnnotationsFutureTestCase obj's underlying member method code with example usage: obj.test_annotations_forbidden() without return types