code: def test_CheckParameter():
      mu = pt.constant(0)
      sigma = pt.scalar("sigma")
      x_rv = pt.random.normal(mu, sigma, name="x")
      x_vv = pt.constant(0)
      x_logp = logp(x_rv, x_vv)
  
      x_logp_fn = function([sigma], x_logp)
      with pytest.raises(ParameterValueError, match="sigma > 0"):
          x_logp_fn(-1)
  
imports: import numpy
  import pytensor
  import pytest
  from pytensor import function
  from pytensor import tensor
  from pytensor.compile import get_default_mode
  from pytensor.graph.basic import ancestors, equal_computations
  from pytensor.tensor.random.op import RandomVariable
  import pymc
  from pymc import SymbolicRandomVariable, inputvars
  from pymc.distributions.transforms import Interval
  from pymc.logprob.abstract import MeasurableVariable
  from pymc.logprob.basic import logp
  from pymc.logprob.utils import ParameterValueError, check_potential_measurability, dirac_delta, replace_rvs_by_values
  from pymc.testing import assert_no_rvs
  from tests.logprob.utils import create_pytensor_params, scipy_logprob_tester
label_desc: Use image node_id 1 for calling a global function with example usage: test_CheckParameter() without return types