class_docstr: Test the custom loss functions.
docstr: Test the pipeline on RotatE with negative sampling self adversarial loss and nations.
docstr_tok: ["Test","the","pipeline","on","RotatE","with","negative","sampling","self","adversarial","loss","and","nations","."]
code: def test_pipeline(self):
      """Test the pipeline on RotatE with negative sampling self adversarial loss and nations."""
      loss = NSSALoss
      loss_kwargs = {"margin": 1.0, "adversarial_temperature": 1.0}
      pipeline_results = pipeline(
          model="RotatE",
          dataset="nations",
          loss=loss,
          loss_kwargs=loss_kwargs,
          training_kwargs=dict(use_tqdm=False),
      )
      self.assertIsInstance(pipeline_results, PipelineResult)
      self.assertIsInstance(pipeline_results.model.loss, loss)
      self.assertEqual(pipeline_results.model.loss.margin, 1.0)
      self.assertEqual(
          pipeline_results.model.loss.inverse_softmax_temperature, 1.0
      )
  
imports: import unittest
  import numpy
  import torch
  import unittest_templates
  import pykeen.losses
  from pykeen.losses import Loss, NSSALoss, apply_label_smoothing
  from pykeen.pipeline import PipelineResult, pipeline
  from tests import cases
label_desc: Use image node_id 2 for calling the TestCustomLossFunctions obj's underlying member method code with example usage: obj.test_pipeline() without return types