code: def atest_sample_model():
      """
      Tests sampling function
      """
      model = pf.GASReg(
          formula="y ~ x1", data=data, family=pf.Laplace()
      )
      x = model.fit("BBVI", iterations=100)
      sample = model.sample(nsims=100)
      assert sample.shape[0] == 100
      assert sample.shape[1] == len(data)
  
imports: import numpy
  import pandas
  import pyflux
label_desc: Use image node_id 19 for calling a global function with example usage: atest_sample_model() without return types