code: def test_warn_random_found_factorized_joint_logprob():
      x_rv = pt.random.normal(name="x")
      y_rv = pt.random.normal(x_rv, 1, name="y")
  
      y_vv = y_rv.clone()
  
      with pytest.warns(
          UserWarning,
          match="Random variables detected in the logp graph: {x}",
      ):
          conditional_logp({y_rv: y_vv})
  
      with warnings.catch_warnings():
          warnings.simplefilter("error")
          conditional_logp({y_rv: y_vv}, warn_rvs=False)
  
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 6 for calling a global function with example usage: test_warn_random_found_factorized_joint_logprob() without return types