def METHOD_NAME(self):
    mySymbolicMatricesList = TypedListType(
        TensorType(aesara.config.floatX, shape=(None, None))
    )()
    mySymbolicIndex = scalar(dtype="int64")
    mySymbolicMatrix = matrix()
    z = Insert()(mySymbolicMatricesList, mySymbolicIndex, mySymbolicMatrix)
    m = aesara.compile.mode.get_default_mode().including(
        "typed_list_inplace_rewrite"
    )
    f = aesara.function(
        [
            In(mySymbolicMatricesList, borrow=True, mutable=True),
            mySymbolicIndex,
            mySymbolicMatrix,
        ],
        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], np.asarray(1, dtype="int64"), y), [x, y])