code: def test_continuous_rv_clip():
      x_rv = pt.random.normal(0.5, 1)
      cens_x_rv = pt.clip(x_rv, -2, 2)
  
      cens_x_vv = cens_x_rv.clone()
      cens_x_vv.tag.test_value = 0
  
      logprob = pt.sum(logp(cens_x_rv, cens_x_vv))
      assert_no_rvs(logprob)
  
      logp_fn = pytensor.function([cens_x_vv], logprob)
      ref_scipy = st.norm(0.5, 1)
  
      assert logp_fn(-3) == -np.inf
      assert logp_fn(3) == -np.inf
  
      assert np.isclose(logp_fn(-2), ref_scipy.logcdf(-2))
      assert np.isclose(logp_fn(2), ref_scipy.logsf(2))
      assert np.isclose(logp_fn(0), ref_scipy.logpdf(0))
  
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 1 for calling a global function with example usage: test_continuous_rv_clip() without return types