code: def test2(self):
      prog_text_2 = """\
  def wrong2():
      print(x)
      global x
  """
      check_syntax_error(self, prog_text_2, lineno=3, offset=5)
  
file_path: cpython/Lib/test/test_global.py
imports: from test.support import check_syntax_error
  from test.support.warnings_helper import check_warnings
  import unittest
  import warnings
label_desc: Use image node_id 3 for calling the GlobalTests obj's underlying member method code with example usage: obj.test2() without return types