code: def test_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, priors=priors)
      priors[
          "sigma"
      ].auto_scale = False  # the one in the model is set to False
      assert model.constant_components["sigma"].prior == priors["sigma"]
  
      priors = {"alpha": bmb.Prior("Uniform", lower=1, upper=20)}
      model = bmb.Model(
          "y ~ x", data, family="negativebinomial", priors=priors
      )
      priors["alpha"].auto_scale = False
      assert model.constant_components["alpha"].prior == priors["alpha"]
  
      priors = {"alpha": bmb.Prior("Uniform", lower=0, upper=50)}
      model = bmb.Model("y ~ x", data, family="gamma", priors=priors)
      priors["alpha"].auto_scale = False
      assert model.constant_components["alpha"].prior == priors["alpha"]
  
      priors = {"alpha": bmb.Prior("Uniform", lower=0, upper=50)}
      model = bmb.Model("y ~ x", data, family="gamma", priors=priors)
      priors["alpha"].auto_scale = False
      assert model.constant_components["alpha"].prior == priors["alpha"]
  
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 16 for calling a global function with example usage: test_response_prior() without return types