code: def test_1arg(self):
      x = dmatrix("x")
  
      @as_op(dmatrix, dvector)
      def cumprod(x):
          return np.cumprod(x)
  
      fn = function([x], cumprod(x))
      r = fn([[1.5, 5], [2, 2]])
      r0 = np.array([1.5, 7.5, 15.0, 30.0])
  
      assert np.allclose(r, r0), (r, r0)
  
file_path: pytensor/tests/compile/test_ops.py
imports: import pickle
  import numpy
  from pytensor import function
  from pytensor.compile.ops import as_op
  from pytensor.tensor.type import dmatrix, dvector
  from tests import unittest_tools
label_desc: Use image node_id 1 for calling the TestOpDecorator obj's underlying member method code with example usage: obj.test_1arg() and returns: np