code: def test_bad_prior(data_1d_single_group):
      match = "The priors for an HSGP term must be passed within a dictionary"
      priors = {"hsgp(x, m=10, c=2)": bmb.Prior("Exponential", lam=1)}
      with pytest.raises(ValueError, match=match):
          bmb.Model(
              "y ~ 0 + hsgp(x, m=10, c=2)",
              data_1d_single_group,
              priors=priors,
          )
  
imports: import pathlib
  import re
  import bambi
  import numpy
  import pandas
  import pytest
label_desc: Use image node_id 17 for calling a global function with example usage: test_bad_prior(data_1d_single_group) without return types