code: def test_capture_with_duplicate_usage(self, capture_type):
      def f():
          return x + x  # should capture x just once.
  
      tf_f = tf.function(f)
  
      x = capture_type(1)
      self.assertEqual(f(), tf_f())
      self.assertLen(tf_f.get_concrete_function().graph.inputs, 1)
  
      x = capture_type(2)
      self.assertEqual(f(), tf_f())
      self.assertLen(tf_f.get_concrete_function().graph.inputs, 1)
  
file_path: tensorflow-upstream/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 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