code: def test_skewt_pml():
      """
      Tests a PML model estimated with Laplace approximation 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.Skewt())
      x = model.fit("PML")
      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
  
file_path: pyflux/pyflux/gas/tests/gas_llev_tests_skewt.py
imports: import numpy
  import pyflux
label_desc: Use image node_id 8 for calling a global function with example usage: test_skewt_pml() without return types