code: def test_model_unchanged_logprob_access():
      # Issue #5007
      with pm.Model() as model:
          a = pm.Normal("a")
          c = pm.Uniform("c", lower=a - 1, upper=1)
  
      original_inputs = set(pytensor.graph.graph_inputs([c]))
      # Extract model.logp
      model.logp()
      new_inputs = set(pytensor.graph.graph_inputs([c]))
      assert original_inputs == new_inputs
  
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 10 for calling a global function with example usage: test_model_unchanged_logprob_access() without return types