class_docstr: Tests for pm.Bound distribution
class_docstr_tok: ["Tests","for","pm.Bound","distribution"]
code: def test_invalid_sampling(self):
      msg = "Cannot sample from a bounded variable"
      with pm.Model() as m:
          dist = pm.Normal.dist(mu=0, sigma=1)
          with pytest.warns(
              FutureWarning, match="Bound has been deprecated"
          ):
              BoundedNormal = pm.Bound(
                  "bounded", dist, lower=1, upper=10
              )
          with pytest.raises(NotImplementedError, match=msg):
              pm.sample_prior_predictive()
  
file_path: pymc/tests/distributions/test_bound.py
imports: import warnings
  import numpy
  import pytest
  import scipy.stats
  from pytensor.tensor.random.op import RandomVariable
  import pymc
label_desc: Use image node_id 5 for calling the TestBound obj's underlying member method code with example usage: obj.test_invalid_sampling() without return types