code: def test_model_repr_variables_without_monkey_patched_repr():
      """Test that model repr does not rely on individual variables having the str_repr method monkey patched."""
      x = normal(name="x")
      assert not hasattr(x, "str_repr")
  
      model = Model()
      model.register_rv(x, "x")
  
      str_repr = model.str_repr()
      assert str_repr == "x ~ Normal(0, 1)"
  
file_path: pymc/tests/test_printing.py
imports: import numpy
  from pytensor.tensor.random import normal
  from pymc import Bernoulli, Censored, HalfCauchy, Mixture, StudentT
  from pymc.distributions import Dirichlet, DirichletMultinomial, HalfNormal, KroneckerNormal, MvNormal, NegativeBinomial, Normal, Uniform, ZeroInflatedPoisson
  from pymc.math import dot
  from pymc.model import Deterministic, Model, Potential
  from pymc.pytensorf import floatX
label_desc: Use image node_id 3 for calling a global function with example usage: test_model_repr_variables_without_monkey_patched_repr() without return types