code: def test_in_mutable(self):
      a = theano.tensor.dvector()
      a_out = (
          a * 2
      )  # assuming the op which makes this "in place" triggers
  
      # using mutable=True will let f change the value in aval
      f = theano.function([In(a, mutable=True)], a_out, mode="FAST_RUN")
      aval = np.random.rand(10)
      aval2 = aval.copy()
      assert np.all(f(aval) == (aval2 * 2))
      assert not np.all(aval == aval2)
  
      # using mutable=False should leave the input untouched
      f = theano.function(
          [In(a, mutable=False)], a_out, mode="FAST_RUN"
      )
      aval = np.random.rand(10)
      aval2 = aval.copy()
      assert np.all(f(aval) == (aval2 * 2))
      assert np.all(aval == aval2)
  
imports: from __future__ import absolute_import, print_function, division
  import six.moves.cPickle
  import os
  import shutil
  import tempfile
  import unittest
  import numpy
  import theano
  from theano.compile.io import In
label_desc: Use image node_id 4 for calling the TestFunctionIn obj's underlying member method code with example usage: obj.test_in_mutable() without return types