code: def test_free_var_in_comp_child(self):
      code = """
              lst = range(3)
              funcs = [lambda: x for x in lst]
              inc = [x + 1 for x in lst]
              [x for x in inc]
              x = funcs[0]()
          """
      outputs = {"x": 2}
      self._check_in_scopes(code, outputs)
  
imports: import doctest
  import textwrap
  import types
  import unittest
label_desc: Use image node_id 16 for calling the ListComprehensionTest obj's underlying member method code with example usage: obj.test_free_var_in_comp_child() without return types