code: def test_reset_queue(self):
      self.loss = CrossBatchMemory(
          loss=ContrastiveLoss(),
          embedding_size=self.embedding_size,
          memory_size=self.memory_size,
      )
  
      init_emb = torch.zeros(self.memory_size, self.embedding_size)
      init_label = torch.zeros(self.memory_size).long()
      self.assertTrue(torch.equal(self.loss.embedding_memory, init_emb))
      self.assertTrue(torch.equal(self.loss.label_memory, init_label))
  
      self.loss(torch.randn(32, 128), torch.randint(0, 2, size=(32,)))
      self.assertTrue(
          not torch.equal(self.loss.embedding_memory, init_emb)
      )
      self.assertTrue(
          not torch.equal(self.loss.label_memory, init_label)
      )
  
      self.loss.reset_queue()
      self.assertTrue(torch.equal(self.loss.embedding_memory, init_emb))
      self.assertTrue(torch.equal(self.loss.label_memory, init_label))
  
imports: import unittest
  import torch
  import pytorch_metric_learning.losses
  from pytorch_metric_learning.losses import ContrastiveLoss, CrossBatchMemory, MultiSimilarityLoss, NTXentLoss
  from pytorch_metric_learning.miners import DistanceWeightedMiner, MultiSimilarityMiner, PairMarginMiner, TripletMarginMiner
  from pytorch_metric_learning.utils import loss_and_miner_utils
  from ..None import TEST_DEVICE, TEST_DTYPES
  from ..zzz_testing_utils.testing_utils import angle_to_coord
label_desc: Use image node_id 12 for calling the TestCrossBatchMemory obj's underlying member method code with example usage: obj.test_reset_queue() without return types