code: def setUpClass(self):
      embedding_angles = [0, 9, 21, 29, 31, 39, 51, 59]
      embeddings1 = torch.tensor(
          [angle_to_coord(a) for a in embedding_angles]
      )
      parent_labels1 = torch.LongTensor([0, 0, 0, 0, 1, 1, 1, 1])
      child_labels1 = torch.LongTensor([2, 2, 3, 3, 4, 4, 5, 5])
      labels1 = torch.stack([child_labels1, parent_labels1], axis=1)
  
      embedding_angles = [2, 11, 23, 32, 33, 41, 53, 89, 90]
      embeddings2 = torch.tensor(
          [angle_to_coord(a) for a in embedding_angles]
      )
      parent_labels2 = torch.LongTensor([0, 0, 0, 0, 0, 1, 1, 1, 1])
      child_labels2 = torch.LongTensor([2, 2, 4, 3, 4, 4, 4, 5, 5])
      labels2 = torch.stack([child_labels2, parent_labels2], axis=1)
  
      self.dataset_dict = {
          "train": c_f.EmbeddingDataset(embeddings1, labels1),
          "val": c_f.EmbeddingDataset(embeddings2, labels2),
      }
  
file_path: pytorch-metric-learning/tests/testers/test_with_same_parent_label_tester.py
imports: import unittest
  import numpy
  import torch
  from pytorch_metric_learning.testers import WithSameParentLabelTester
  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 1 for calling the TestWithSameParentLabelTester obj's underlying member method code with example usage: obj.setUpClass() without return types