code: def test_loss_vaegmm():
      loss = loss_vaegmm(
          x, y, z, gamma, w_recon=1e-7, w_energy=0.1, w_cov_diag=0.005
      )
      loss_no_recon = loss_vaegmm(
          x, y, z, gamma, w_recon=0.0, w_energy=0.1, w_cov_diag=0.005
      )
      loss_no_recon_cov = loss_vaegmm(
          x, y, z, gamma, w_recon=0.0, w_energy=0.1, w_cov_diag=0.0
      )
      loss_xx = loss_vaegmm(
          x, x, z, gamma, w_recon=1e-7, w_energy=0.1, w_cov_diag=0.005
      )
      assert loss > loss_no_recon
      assert loss_no_recon > loss_no_recon_cov
      assert loss > loss_xx
  
file_path: alibi-detect/alibi_detect/models/tensorflow/tests/test_losses_tf.py
imports: import pytest
  import numpy
  import tensorflow
  from alibi_detect.models.tensorflow.losses import elbo, loss_adv_ae, loss_aegmm, loss_vaegmm, loss_distillation
label_desc: Use image node_id 4 for calling a global function with example usage: test_loss_vaegmm() without return types