code: def test_t_mh():
      """
      Tests an GAS model estimated with Metropolis-Hastings and that the length of the
      latent variable list is correct, and that the estimated latent variables are not nan
      """
      model = pf.GASLLEV(data=data, family=pf.t())
      x = model.fit("M-H", nsims=300)
      assert len(model.latent_variables.z_list) == 3
      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 7 for calling a global function with example usage: test_t_mh() without return types