class_docstr: Tests for pm.Bound distribution
class_docstr_tok: ["Tests","for","pm.Bound","distribution"]
code: def test_bound_dist(self):
      # Continuous
      bound = pm.Bound.dist(pm.Normal.dist(0, 1), lower=0)
      assert pm.logp(bound, -1).eval() == -np.inf
      assert np.isclose(
          pm.logp(bound, 1).eval(), st.norm(0, 1).logpdf(1)
      )
  
      # Discrete
      bound = pm.Bound.dist(pm.Poisson.dist(1), lower=2)
      assert pm.logp(bound, 1).eval() == -np.inf
      assert np.isclose(
          pm.logp(bound, 2).eval(), st.poisson(1).logpmf(2)
      )
  
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 7 for calling the TestBound obj's underlying member method code with example usage: obj.test_bound_dist() without return types