code: def test_nested_func(self):
      x = 1
      y = 2
  
      def g():
          return y
  
      def f():
          return g() + x
  
      txt = free_vars_detect.generate_free_var_logging(f)
      txt = self._remove_explanation(txt)
      lines = txt.split("\n")
      self.assertLen(lines, 2)
      self.assertEqual(lines[0], "Inside function f(): g, x")
      self.assertEqual(lines[1], "Inside function g(): y")
  
imports: import functools
  import unittest
  from absl.testing import parameterized
  import numpy
  from tensorflow.core.function.capture import free_vars_detect
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 7 for calling the GenerateLoggingTest obj's underlying member method code with example usage: obj.test_nested_func() and returns: y, unknown