code: def prior(self, value):
      message = (
          "The priors for an HSGP term must be passed within a dictionary. "
          "Keys must the names of the parameters of the covariance function "
          "and values are instances of `bambi.Prior` or numeric constants."
      )
      if value is None:
          self._prior = value
      else:
          if not isinstance(value, dict):
              raise ValueError(message)
          for prior in value.values():
              assert isinstance(
                  prior, GP_VALID_PRIORS
              ), f"Prior must be one of {GP_VALID_PRIORS}"
          self._prior = value
  
imports: from functools import partial
  import numpy
  import formulae.terms
  from bambi.terms.base import BaseTerm, VALID_PRIORS
label_desc: Use image node_id 12 for calling the HSGPTerm obj's underlying member method code with example usage: obj.prior(value) without return types