code: def test_explicit_global_2(self):
      code = """
              global g
              x = g
              g = 2
              items = [g for x in [1]]
              y = g
          """
      outputs = {"x": 1, "y": 2, "items": [2]}
      self._check_in_scopes(code, outputs, ns={"g": 1})
  
imports: import doctest
  import textwrap
  import types
  import unittest
label_desc: Use image node_id 13 for calling the ListComprehensionTest obj's underlying member method code with example usage: obj.test_explicit_global_2() without return types