code: def test_global_two_stream_embedding_space_tester(self):
      embedding_angles = [0, 10, 20, 30, 50, 60, 70, 80]
      embeddings1 = torch.tensor(
          [angle_to_coord(a) for a in embedding_angles]
      )
      embedding_angles = [81, 71, 61, 31, 51, 21, 11, 1]
      embeddings2 = torch.tensor(
          [angle_to_coord(a) for a in embedding_angles]
      )
      labels = torch.LongTensor([1, 2, 3, 4, 5, 6, 7, 8, 9])
      dataset_dict = {
          "train": FakeDataset(embeddings1, embeddings2, labels),
      }
  
      model = torch.nn.Identity()
      AC = accuracy_calculator.AccuracyCalculator(
          include=("precision_at_1",)
      )
  
      tester = GlobalTwoStreamEmbeddingSpaceTester(
          accuracy_calculator=AC, dataloader_num_workers=0
      )
      all_accuracies = tester.test(dataset_dict, 0, model)
  
      self.assertTrue(
          np.isclose(
              all_accuracies["train"]["precision_at_1_level0"], 0.25
          )
      )
  
file_path: pytorch-metric-learning/tests/testers/test_global_two_stream_embedding_space_tester.py
imports: import unittest
  import numpy
  import torch
  from pytorch_metric_learning.testers import GlobalTwoStreamEmbeddingSpaceTester
  from pytorch_metric_learning.utils import accuracy_calculator
  from ..zzz_testing_utils.testing_utils import angle_to_coord
label_desc: Use image node_id 1 for calling the TestGlobalTwoStreamEmbeddingSpaceTester obj's underlying member method code with example usage: obj.test_global_two_stream_embedding_space_tester() without return types