code: def test_with_values(self):
      for n_samples in [1, 2, 4]:
          for dimension in [1, 2, 16, 64]:
              for temperature in [0.1, 1, 10]:
                  for gather_distributed in [False, True]:
                      out0 = np.random.normal(
                          0, 1, size=(n_samples, dimension)
                      )
                      out1 = np.random.normal(
                          0, 1, size=(n_samples, dimension)
                      )
                      with self.subTest(
                          msg=(
                              f"out0.shape={out0.shape}, temperature={temperature}, "
                              f"gather_distributed={gather_distributed}"
                          )
                      ):
                          out0 = torch.FloatTensor(out0)
                          out1 = torch.FloatTensor(out1)
  
                          loss_function = NTXentLoss(
                              temperature=temperature,
                              gather_distributed=gather_distributed,
                          )
                          l1 = float(loss_function(out0, out1))
                          l2 = float(loss_function(out1, out0))
                          l1_manual = self.calc_ntxent_loss_manual(
                              out0, out1, temperature=temperature
                          )
                          l2_manual = self.calc_ntxent_loss_manual(
                              out0, out1, temperature=temperature
                          )
                          self.assertAlmostEqual(l1, l2, places=5)
                          self.assertAlmostEqual(
                              l1, l1_manual, places=5
                          )
                          self.assertAlmostEqual(
                              l2, l2_manual, places=5
                          )
  
imports: import unittest
  import numpy
  import pytest
  import torch
  from pytest_mock import MockerFixture
  from torch import distributed
  from lightly.loss import NTXentLoss
label_desc: Use image node_id 1 for calling the TestNTXentLossUnitTest obj's underlying member method code with example usage: obj.test_with_values() without return types