code: def _equal(a, b):
      if isinstance(a, (torch.Tensor, np.ndarray)):
          return (a == b).all()
      else:
          return a == b
  
file_path: mmdetection/tests/test_structures/test_reid_data_sample.py
imports: from unittest import TestCase
  import numpy
  import torch
  from mmengine.structures import LabelData
  from mmdet.structures import ReIDDataSample
label_desc: Use image node_id 1 for calling a global function with example usage: _equal(a, b) and returns: unknown, unknown