code: def test_shifted_cumsum():
      x = pt.random.normal(size=(5,), name="x")
      y = 5 + pt.cumsum(x)
      y.name = "y"
  
      y_vv = y.clone()
      logprob = logp(y, y_vv)
      assert np.isclose(
          logprob.eval({y_vv: np.arange(5) + 1 + 5}).sum(),
          st.norm.logpdf(1) * 5,
      )
  
file_path: pymc/tests/logprob/test_composite_logprob.py
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  import scipy.stats
  from pymc import draw, logp
  from pymc.logprob.abstract import MeasurableVariable
  from pymc.logprob.basic import conditional_logp
  from pymc.logprob.rewriting import construct_ir_fgraph
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 4 for calling a global function with example usage: test_shifted_cumsum() without return types