code: def test_loss_function_call():
      for loss_name in losses.loss_dict:
          # Attempt to construct loss by name
          losses.triplet_loss(distance=loss_name)
  
file_path: ivis/tests/nn/test_losses.py
imports: import tempfile
  import os
  import pytest
  from sklearn import datasets
  from tensorflow.keras import backend
  import tensorflow
  from ivis.nn import losses
  from ivis.nn.distances import euclidean_distance
  from ivis import Ivis
label_desc: Use image node_id 2 for calling a global function with example usage: test_loss_function_call() without return types