class_docstr: Tests for pm.Bound distribution
class_docstr_tok: ["Tests","for","pm.Bound","distribution"]
code: def test_bound_shapes(self):
      with pm.Model(coords={"sample": np.ones((2, 5))}) as m:
          dist = pm.Normal.dist(mu=0, sigma=1)
          with pytest.warns(
              FutureWarning, match="Bound has been deprecated"
          ):
              bound_sized = pm.Bound(
                  "boundedsized", dist, lower=1, upper=10, size=(4, 5)
              )
              bound_shaped = pm.Bound(
                  "boundedshaped", dist, lower=1, upper=10, shape=(3, 5)
              )
              bound_dims = pm.Bound(
                  "boundeddims", dist, lower=1, upper=10, dims="sample"
              )
  
      initial_point = m.initial_point()
      dist_size = initial_point["boundedsized_interval__"].shape
      dist_shape = initial_point["boundedshaped_interval__"].shape
      dist_dims = initial_point["boundeddims_interval__"].shape
  
      assert dist_size == (4, 5)
      assert dist_shape == (3, 5)
      assert dist_dims == (2, 5)
  
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 6 for calling the TestBound obj's underlying member method code with example usage: obj.test_bound_shapes() without return types