code: def test_naive_bcast_rv_lift():
      r"""Make sure `naive_bcast_rv_lift` can handle useless scalar `Alloc`\s."""
      X_rv = pt.random.normal()
      Z_at = Alloc()(X_rv, *())
  
      # Make sure we're testing what we intend to test
      assert isinstance(Z_at.owner.op, Alloc)
  
      res = rewrite_graph(
          Z_at, custom_rewrite=in2out(naive_bcast_rv_lift), clone=False
      )
      assert res is X_rv
  
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 1 for calling a global function with example usage: test_naive_bcast_rv_lift() without return types