code: def test_nested_tf_function_with_capture(self, capture_type):
      @tf.function
      def tf_f():
          @tf.function
          def tf_g():
              return x
  
          return tf_g()
  
      x = capture_type(0)
      self.assertEqual(tf_f(), tf.constant(0))
      x = capture_type(1)
      self.assertEqual(tf_f(), tf.constant(0))
      # Test the outer function doesn't have any captures
      self.assertLen(tf_f.get_concrete_function().graph.capture, 1)
  
file_path: tensorflow/tensorflow/core/function/integration_test/side_inputs_test.py
imports: import unittest
  from absl.testing import parameterized
  import tensorflow
label_desc: Use image node_id 10 for calling the SideInputsTest obj's underlying member method code with example usage: obj.test_nested_tf_function_with_capture(capture_type) and returns: tf_g, x