code: def _equal(self, a, b):
      if isinstance(a, (torch.Tensor, np.ndarray)):
          return (a == b).all()
      else:
          return a == b
  
file_path: mmocr/tests/test_models/test_textrecog/test_module_losses/test_abi_module_loss.py
imports: from unittest import TestCase
  import numpy
  import torch
  from mmengine.structures import LabelData
  from mmocr.models.textrecog.module_losses import ABIModuleLoss
  from mmocr.structures import TextRecogDataSample
label_desc: Use image node_id 2 for calling the TestABIModuleLoss obj's underlying member method code with example usage: obj._equal(a, b) and returns: unknown, unknown