code: def test_deterministic_clipping():
      x_rv = pt.random.normal(0, 1)
      clip = pt.clip(x_rv, 0, 0)
      y_rv = pt.random.normal(clip, 1)
  
      x_vv = x_rv.clone()
      y_vv = y_rv.clone()
      logp = conditional_logp({x_rv: x_vv, y_rv: y_vv})
      logp_combined = pt.sum(
          [pt.sum(factor) for factor in logp.values()]
      )
      assert_no_rvs(logp_combined)
  
      logp_fn = pytensor.function([x_vv, y_vv], logp_combined)
      assert np.isclose(
          logp_fn(-1, 1),
          st.norm(0, 1).logpdf(-1) + st.norm(0, 1).logpdf(1),
      )
  
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  import scipy
  import scipy.stats
  from pymc import logp
  from pymc.logprob import conditional_logp
  from pymc.logprob.transform_value import TransformValuesRewrite
  from pymc.logprob.transforms import LogTransform
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 10 for calling a global function with example usage: test_deterministic_clipping() without return types