code: def test_set_priors_but_intercept():
      rng = np.random.default_rng(121195)
      df = pd.DataFrame(
          {
              "y": [0, 1, 0, 0, 1, 0, 1, 0, 1, 0],
              "z": rng.normal(size=10),
              "x1": rng.uniform(size=10),
              "x2": rng.uniform(size=10),
              "g": ["A"] * 5 + ["B"] * 5,
          }
      )
  
      priors = {
          "x1": bmb.Prior("TruncatedNormal", sigma=1, mu=0, lower=0),
          "x2": bmb.Prior("TruncatedNormal", sigma=1, mu=0, upper=0),
      }
  
      bmb.Model("y ~ x1 + x2", df, family="bernoulli", priors=priors)
  
      priors = {
          "x1": bmb.Prior("StudentT", mu=0, nu=4, lam=1),
          "x2": bmb.Prior("StudentT", mu=0, nu=8, lam=2),
      }
  
      bmb.Model("z ~ x1 + x2 + (1|g)", df, priors=priors)
  
imports: from os.path import dirname, join
  import pytest
  import numpy
  import pymc
  import pandas
  from scipy import special
  import bambi
label_desc: Use image node_id 19 for calling a global function with example usage: test_set_priors_but_intercept() without return types