code: def test_bbvi_mini_batch():
      """
      Tests an ARIMA model estimated with BBVI and that the length of the latent variable
      list is correct, and that the estimated latent variables are not nan
      """
      model = pf.GAS(data=data, ar=1, sc=1, family=pf.Normal())
      x = model.fit("BBVI", iterations=100, mini_batch=32)
      assert len(model.latent_variables.z_list) == 4
      lvs = np.array([i.value for i in model.latent_variables.z_list])
      assert len(lvs[np.isnan(lvs)]) == 0
  
imports: import numpy
  import pyflux
label_desc: Use image node_id 5 for calling a global function with example usage: test_bbvi_mini_batch() without return types