code: def test_sample_model():
      model = pf.GARCH(data=data, q=2, p=2)
      x = model.fit("BBVI", iterations=100)
      sample = model.sample(nsims=100)
      assert sample.shape[0] == 100
      assert sample.shape[1] == len(data) - 2
  
imports: import numpy
  import pyflux
  import pandas
  from pandas.io.data import DataReader
  from datetime import datetime
label_desc: Use image node_id 22 for calling a global function with example usage: test_sample_model() without return types