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_base_recog_module_loss.py
imports: import os.path
  import tempfile
  from unittest import TestCase
  import numpy
  import torch
  from mmengine.structures import LabelData
  from mmocr.models.common.dictionary import Dictionary
  from mmocr.models.textrecog.module_losses import BaseTextRecogModuleLoss
  from mmocr.structures import TextRecogDataSample
  from mmocr.testing import create_dummy_dict_file
label_desc: Use image node_id 1 for calling the TestBaseRecogModuleLoss obj's underlying member method code with example usage: obj._equal(a, b) and returns: unknown, unknown