code: def test_find_constrained_prior_input_errors():
      # missing param
      with pytest.raises(
          TypeError, match="required positional argument"
      ):
          pm.find_constrained_prior(
              pm.StudentT,
              lower=0.1,
              upper=0.4,
              mass=0.95,
              init_guess={"mu": 170, "sigma": 3},
          )
  
      # mass too high
      with pytest.raises(
          AssertionError, match="has to be between 0.01 and 0.99"
      ):
          pm.find_constrained_prior(
              pm.StudentT,
              lower=0.1,
              upper=0.4,
              mass=0.995,
              init_guess={"mu": 170, "sigma": 3},
              fixed_params={"nu": 7},
          )
  
      # mass too low
      with pytest.raises(
          AssertionError, match="has to be between 0.01 and 0.99"
      ):
          pm.find_constrained_prior(
              pm.StudentT,
              lower=0.1,
              upper=0.4,
              mass=0.005,
              init_guess={"mu": 170, "sigma": 3},
              fixed_params={"nu": 7},
          )
  
      # non-scalar params
      with pytest.raises(
          NotImplementedError,
          match="does not work with non-scalar parameters yet",
      ):
          pm.find_constrained_prior(
              pm.MvNormal,
              lower=0,
              upper=1,
              mass=0.95,
              init_guess={
                  "mu": 5,
                  "cov": np.asarray([[1, 0.2], [0.2, 1]]),
              },
          )
  
imports: import numpy
  import pytest
  import pymc
label_desc: Use image node_id 3 for calling a global function with example usage: test_find_constrained_prior_input_errors() without return types