code: def test_set_response_prior():
      rng = np.random.default_rng(121195)
      data = pd.DataFrame(
          {"y": rng.integers(3, 10, size=50), "x": rng.normal(size=50)}
      )
  
      priors = {"sigma": bmb.Prior("Uniform", lower=0, upper=50)}
      model = bmb.Model("y ~ x", data)
      model.set_priors(priors)
      assert model.constant_components["sigma"].prior == bmb.Prior(
          "Uniform", False, lower=0, upper=50
      )
  
      priors = {"alpha": bmb.Prior("Uniform", lower=1, upper=20)}
      model = bmb.Model("y ~ x", data, family="negativebinomial")
      model.set_priors(priors)
      assert model.constant_components["alpha"].prior == bmb.Prior(
          "Uniform", False, lower=1, upper=20
      )
  
      priors = {"alpha": bmb.Prior("Uniform", lower=0, upper=50)}
      model = bmb.Model("y ~ x", data, family="gamma")
      model.set_priors(priors)
      assert model.constant_components["alpha"].prior == bmb.Prior(
          "Uniform", False, lower=0, upper=50
      )
  
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 17 for calling a global function with example usage: test_set_response_prior() without return types