code: def test_multiple_rvs_to_same_value_raises():
      x_rv1 = pt.random.normal(name="x1")
      x_rv2 = pt.random.normal(name="x2")
      x = x_rv1.type()
      x.name = "x"
  
      msg = "More than one logprob term was assigned to the value var x"
      with pytest.raises(ValueError, match=msg):
          conditional_logp({x_rv1: x, x_rv2: x})
  
imports: import warnings
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  import scipy.stats.distributions
  from pytensor.graph.basic import ancestors, equal_computations
  from pytensor.tensor.random.op import RandomVariable
  from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1, IncSubtensor
  import pymc
  from pymc.logprob.basic import conditional_logp, icdf, logcdf, logp, transformed_conditional_logp
  from pymc.logprob.transforms import LogTransform
  from pymc.logprob.utils import replace_rvs_by_values
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 7 for calling a global function with example usage: test_multiple_rvs_to_same_value_raises() without return types