code: def test_interval_transform_raises():
      with pytest.raises(
          ValueError,
          match="Lower and upper interval bounds cannot both be None",
      ):
          tr.Interval(None, None)
  
      with pytest.raises(
          ValueError, match="Interval bounds must be constant values"
      ):
          tr.Interval(pt.constant(5) + 1, None)
  
      assert tr.Interval(pt.constant(5), None)
  
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from pytensor.tensor.variable import TensorConstant
  import pymc
  import pymc.distributions.transforms
  from pymc.logprob.basic import transformed_conditional_logp
  from pymc.logprob.transforms import Transform
  from pymc.pytensorf import floatX, jacobian
  from pymc.testing import Circ, MultiSimplex, R, Rminusbig, Rplusbig, Simplex, SortedVector, Unit, UnitSortedVector, Vector
label_desc: Use image node_id 22 for calling a global function with example usage: test_interval_transform_raises() without return types