code: def test_bernoulli_cumsum(size, axis):
      rv = pt.random.bernoulli(0.9, size=size).cumsum(axis)
      vv = rv.clone()
      logprob = logp(rv, vv)
      assert_no_rvs(logprob)
  
      assert np.isclose(
          st.bernoulli(0.9).logpmf(np.ones(size)).sum(),
          logprob.eval({vv: np.ones(size, int).cumsum(axis)}).sum(),
      )
  
file_path: pymc/tests/logprob/test_cumsum.py
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  import scipy.stats
  from pymc import logp
  from pymc.logprob.basic import conditional_logp
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 2 for calling a global function with example usage: test_bernoulli_cumsum(size, axis) without return types