code: def test_capture_within_function_argument(self, capture_type):
      def g():
          cx = tf.func.experimental.capture(lambda: x)
          return cx
  
      def f(h):
          return h()
  
      tf_f = tf.function(f)
  
      x = capture_type(1)  # pylint: disable=unused-variable
      self.assertEqual(f(g), tf_f(g))
      x = capture_type(2)
      self.assertEqual(f(g), tf_f(g))
  
file_path: tensorflow-upstream/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 9 for calling the SideInputsTest obj's underlying member method code with example usage: obj.test_capture_within_function_argument(capture_type) and returns: cx, h