code: def test2_bbvi_mini_batch():
      """
      Tests an GASX 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.GASX(
          formula="y ~ x1 + x2",
          data=data,
          ar=1,
          sc=1,
          family=pf.Cauchy(),
      )
      x = model.fit("BBVI", iterations=500, mini_batch=32)
      assert len(model.latent_variables.z_list) == 6
      lvs = np.array([i.value for i in model.latent_variables.z_list])
      assert len(lvs[np.isnan(lvs)]) == 0
  
imports: import numpy
  import pandas
  import pyflux
label_desc: Use image node_id 28 for calling a global function with example usage: test2_bbvi_mini_batch() without return types