code: def test_append_inplace(self):
      mySymbolicMatricesList = TypedListType(
          TensorType(pytensor.config.floatX, shape=(None, None))
      )()
      mySymbolicMatrix = matrix()
      z = Append()(mySymbolicMatricesList, mySymbolicMatrix)
      m = pytensor.compile.mode.get_default_mode().including(
          "typed_list_inplace_rewrite"
      )
      f = pytensor.function(
          [
              In(mySymbolicMatricesList, borrow=True, mutable=True),
              In(mySymbolicMatrix, borrow=True, mutable=True),
          ],
          z,
          accept_inplace=True,
          mode=m,
      )
      assert f.maker.fgraph.toposort()[0].op.inplace
  
      x = random_ranged(-1000, 1000, [100, 101])
  
      y = random_ranged(-1000, 1000, [100, 101])
  
      assert np.array_equal(f([x], y), [x, y])
  
file_path: pytensor/tests/typed_list/test_rewriting.py
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytensor.typed_list
  from pytensor.compile.io import In
  from pytensor.tensor.type import TensorType, matrix, scalar
  from pytensor.typed_list.basic import Append, Extend, Insert, Remove, Reverse
  from pytensor.typed_list.type import TypedListType
  from tests.tensor.utils import random_ranged
label_desc: Use image node_id 2 for calling the TestInplace obj's underlying member method code with example usage: obj.test_append_inplace() without return types