code: def test_dict_capture_mutation_with_tensor_and_non_tensor(
      self, capture_type
  ):
      def f():
          cd = tf.func.experimental.capture(lambda: d)
          return cd["val"]
  
      tf_f = tf.function(f)
      d = {"int": 1, "tensor": tf.constant(2), "val": capture_type(3)}
      self.assertEqual(f(), tf_f())
      d["val"] = capture_type(4)
      self.assertEqual(f(), tf_f())
  
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 3 for calling the SideInputsTest obj's underlying member method code with example usage: obj.test_dict_capture_mutation_with_tensor_and_non_tensor(capture_type) and returns: cd