code: def test_naive_bcast_rv_lift_valued_var():
      r"""Check that `naive_bcast_rv_lift` won't touch valued variables"""
  
      x_rv = pt.random.normal(name="x")
      broadcasted_x_rv = pt.broadcast_to(x_rv, (2,))
  
      y_rv = pt.random.normal(broadcasted_x_rv, name="y")
  
      x_vv = x_rv.clone()
      y_vv = y_rv.clone()
      logp_map = conditional_logp({x_rv: x_vv, y_rv: y_vv})
      assert x_vv in logp_map
      assert y_vv in logp_map
      assert len(logp_map) == 2
      assert np.allclose(
          logp_map[x_vv].eval({x_vv: 0}), st.norm(0).logpdf(0)
      )
      assert np.allclose(
          logp_map[y_vv].eval({x_vv: 0, y_vv: [0, 0]}),
          st.norm(0).logpdf([0, 0]),
      )
  
imports: import numpy
  import pytensor
  import pytest
  from pytensor import tensor
  from pytensor.graph import RewriteDatabaseQuery
  from pytensor.graph.rewriting.basic import in2out
  from pytensor.graph.rewriting.utils import rewrite_graph
  from pytensor.tensor.basic import Alloc
  from scipy import stats
  from pymc.logprob.basic import conditional_logp, logp
  from pymc.logprob.rewriting import logprob_rewrites_db
  from pymc.logprob.tensor import naive_bcast_rv_lift
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 2 for calling a global function with example usage: test_naive_bcast_rv_lift_valued_var() without return types