code: def test_find_constrained_prior(
      distribution,
      lower,
      upper,
      init_guess,
      fixed_params,
      mass,
      mass_below_lower,
  ):
      opt_params = pm.find_constrained_prior(
          distribution,
          lower=lower,
          upper=upper,
          mass=mass,
          init_guess=init_guess,
          fixed_params=fixed_params,
          mass_below_lower=mass_below_lower,
      )
  
      opt_distribution = distribution.dist(**opt_params)
      mass_in_interval = (
          pm.math.exp(pm.logcdf(opt_distribution, upper))
          - pm.math.exp(pm.logcdf(opt_distribution, lower))
      ).eval()
      assert np.abs(mass_in_interval - mass) <= 1e-5
  
imports: import numpy
  import pytest
  import pymc
label_desc: Use image node_id 1 for calling a global function with example usage: test_find_constrained_prior(distribution, lower, upper, init_guess, fixed_params, mass, mass_below_lower) without return types