code: def test_get():
      lossObj = loss_functions.get("nll")
      pos_score = tf.constant([50.0, 30.0], dtype=tf.float32)
      corr_score = tf.constant(
          [51.0, 30.0, -100, -60, 96.0, 30.0], dtype=tf.float32
      )
      # Loss: 51, 30, 0, 0, 75, 30
      loss = lossObj(pos_score, corr_score, eta=3)
      assert (
          loss.numpy()
          > np.sum(np.array([126.0, 60.0], dtype=np.float32)) - 1e-4
      ).all() and (
          loss.numpy()
          < np.sum(np.array([126.0, 60.0], dtype=np.float32)) + 1e-4
      ).all(), "Get: Loss function outputs dont match expected outputs"
  
file_path: AmpliGraph/tests/ampligraph/latent_features/test_loss_functions.py
imports: from ampligraph.latent_features import loss_functions
  from ampligraph.latent_features.loss_functions import PairwiseLoss, NLLLoss, AbsoluteMarginLoss, SelfAdversarialLoss, NLLMulticlass
  import pytest
  import tensorflow
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: test_get() without return types