code: def test_global_embedding_space_tester(self):
      model = torch.nn.Identity()
      AC = accuracy_calculator.AccuracyCalculator(
          include=("precision_at_1",)
      )
  
      correct = [
          (None, {"train": 1, "val": 6.0 / 8}),
          (
              [("train", ["train", "val"]), ("val", ["train", "val"])],
              {"train": 1.0 / 8, "val": 1.0 / 8},
          ),
          (
              [("train", ["train"]), ("val", ["train"])],
              {"train": 1, "val": 1.0 / 8},
          ),
      ]
  
      for splits_to_eval, correct_vals in correct:
          tester = GlobalEmbeddingSpaceTester(accuracy_calculator=AC)
          all_accuracies = tester.test(
              self.dataset_dict, 0, model, splits_to_eval=splits_to_eval
          )
          self.assertTrue(
              all_accuracies["train"]["precision_at_1_level0"]
              == correct_vals["train"]
          )
          self.assertTrue(
              all_accuracies["val"]["precision_at_1_level0"]
              == correct_vals["val"]
          )
  
file_path: pytorch-metric-learning/tests/testers/test_global_embedding_space_tester.py
imports: import unittest
  import torch
  from pytorch_metric_learning.testers import GlobalEmbeddingSpaceTester
  from pytorch_metric_learning.utils import accuracy_calculator
  from pytorch_metric_learning.utils import common_functions
  from ..zzz_testing_utils.testing_utils import angle_to_coord
label_desc: Use image node_id 2 for calling the TestGlobalEmbeddingSpaceTester obj's underlying member method code with example usage: obj.test_global_embedding_space_tester() without return types