code: def test_outer_capture_with_nested_function_call(self, capture_type):
      x = capture_type(1)  # pylint: disable=unused-variable
  
      def g_factory():
          def g():
              cx = tf.func.experimental.capture(lambda: x)
              return cx
  
          return g()
  
      def f():
          h = g_factory
          return h()
  
      tf_f = tf.function(f)
  
      self.assertEqual(f(), tf_f())
      x = capture_type(2)
      self.assertEqual(f(), tf_f())
  
file_path: tensorflow/tensorflow/core/function/integration_test/side_inputs_manual_api_test.py
imports: import unittest
  from absl.testing import parameterized
  import tensorflow
label_desc: Use image node_id 8 for calling the SideInputsTest obj's underlying member method code with example usage: obj.test_outer_capture_with_nested_function_call(capture_type) and returns: g, h, cx