code: def test_mutate_return(self, exception):
      @st.cache
      def f():
          return [0, 1]
  
      r = f()
  
      r[0] = 1
  
      exception.assert_not_called()
  
      r2 = f()
  
      exception.assert_called()
  
      self.assertEqual(r, r2)
  
imports: import threading
  import types
  from unittest.mock import Mock, patch
  from parameterized import parameterized
  import streamlit
  from streamlit.elements import exception
  from streamlit.proto.Exception_pb2 import Exception
  from streamlit.runtime.legacy_caching import caching, hashing
  from tests import testutil
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 5 for calling the CacheTest obj's underlying member method code with example usage: obj.test_mutate_return(exception) and returns: list