code: def test_sample_from_prior():
      prior = HorseshoePrior(scale=1, seed=1)
      samples = prior.sample_from_prior(10)
  
      # Test that the rng is set
      assert pytest.approx(samples[0]) == 1.0723988839129437
  
imports: from functools import partial
  import numpy
  import pytest
  import scipy.optimize
  from smac.constants import VERY_SMALL_NUMBER
  from smac.model.gaussian_process.priors import GammaPrior, HorseshoePrior, LogNormalPrior, SoftTopHatPrior, TophatPrior
label_desc: Use image node_id 8 for calling a global function with example usage: test_sample_from_prior() without return types