code: def test_shared_scalar_as_rv_input(self):
      # See https://github.com/pymc-devs/pymc/issues/3139
      with pm.Model() as m:
          shared_var = shared(5.0)
          v = pm.Normal("v", mu=shared_var, size=1)
  
      m_logp_fn = m.compile_logp()
  
      np.testing.assert_allclose(
          m_logp_fn({"v": np.r_[5.0]}),
          -0.91893853,
          rtol=1e-5,
      )
  
      shared_var.set_value(10.0)
  
      np.testing.assert_allclose(
          m_logp_fn({"v": np.r_[10.0]}),
          -0.91893853,
          rtol=1e-5,
      )
  
imports: import io
  import itertools
  import re
  import cloudpickle
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor import shared
  from pytensor.tensor.variable import TensorVariable
  import pymc
  from pymc.data import is_minibatch
  from pymc.pytensorf import GeneratorOp, floatX
label_desc: Use image node_id 8 for calling the TestData obj's underlying member method code with example usage: obj.test_shared_scalar_as_rv_input() without return types