code: def test_destructive_cumsum_fails():
      """Test that a cumsum that mixes dimensions fails"""
      x_rv = pt.random.normal(size=(2, 2, 2)).cumsum()
      x_vv = x_rv.clone()
      with pytest.raises(RuntimeError, match="could not be derived"):
          conditional_logp({x_rv: x_vv})
  
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 3 for calling a global function with example usage: test_destructive_cumsum_fails() without return types