code: def test_capture_with_duplicate_usage(self, capture_type):
      def f():
          cx = tf.func.experimental.capture(lambda: x)
          return cx + cx  # should capture x just once.
  
      tf_f = tf.function(f)
  
      x = capture_type(1)  # pylint: disable=unused-variable
      self.assertEqual(f(), tf_f())
      self.assertLen(
          tf_f._variable_creation_config._captures_container, 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 4 for calling the SideInputsTest obj's underlying member method code with example usage: obj.test_capture_with_duplicate_usage(capture_type) and returns: unknown