code: def test_couple_terms():
      """
      Tests an VAR model with 1 AR and 1 MA term and that
      the latent variable list length is correct, and that the estimated
      latent variables are not nan
      """
      model = pf.VAR(data=data, lags=2)
      x = model.fit()
      assert len(model.latent_variables.z_list) == 13
      lvs = np.array([i.value for i in model.latent_variables.z_list])
      assert len(lvs[np.isnan(lvs)]) == 0
  
file_path: pyflux/pyflux/var/tests/var_tests.py
imports: import numpy
  import pyflux
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: test_couple_terms() without return types