code: def test_outer_nested_tf_function_with_global_capture(
      self, capture_type
  ):
      @tf.function
      def tf_f():
          @tf.function
          def tf_g(x):
              return x
  
          cx = tf.func.experimental.capture(lambda: x)
          return tf_g(cx)
  
      x = capture_type(0)  # pylint: disable=unused-variable
      self.assertEqual(tf_f(), tf.constant(0))
      x = capture_type(1)
      self.assertEqual(tf_f(), tf.constant(1))
  
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 11 for calling the SideInputsTest obj's underlying member method code with example usage: obj.test_outer_nested_tf_function_with_global_capture(capture_type) and returns: tf_g, x