code: def test_loss_adv_md():
      y_true = distilled_model(x).numpy()
      loss_kld = loss_distillation(x, y_true, model, loss_type="kld")
      loss_xent = loss_distillation(x, y_true, model, loss_type="xent")
      assert loss_kld > 0.0
      assert loss_xent > 0.0
  
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 6 for calling a global function with example usage: test_loss_adv_md() without return types