code: def test_multi_similarity_loss_with_ref(self):
      for dtype in TEST_DTYPES:
          (
              embeddings,
              labels,
              ref_emb,
              ref_labels,
              pos_pairs,
              neg_pairs,
          ) = get_pair_embeddings_with_ref(dtype, TEST_DEVICE)
          self.helper(
              embeddings,
              labels,
              pos_pairs,
              neg_pairs,
              dtype,
              ref_emb,
              ref_labels,
          )
  
file_path: pytorch-metric-learning/tests/losses/test_multi_similarity_loss.py
imports: import unittest
  import torch
  from pytorch_metric_learning.losses import MultiSimilarityLoss
  from ..None import TEST_DEVICE, TEST_DTYPES
  from ..zzz_testing_utils.testing_utils import angle_to_coord
  from .utils import get_pair_embeddings_with_ref
label_desc: Use image node_id 2 for calling the TestMultiSimilarityLoss obj's underlying member method code with example usage: obj.test_multi_similarity_loss_with_ref() without return types