code: def test_word_acc_ignore_case_metric(self):
      metric = WordMetric(mode="ignore_case")
      metric.process(None, self.pred)
      eval_res = metric.evaluate(size=3)
      self.assertAlmostEqual(
          eval_res["recog/word_acc_ignore_case"], 2.0 / 3, 4
      )
  
file_path: mmocr/tests/test_evaluation/test_metrics/test_recog_metric.py
imports: import unittest
  from mmengine.structures import LabelData
  from mmocr.evaluation import CharMetric, OneMinusNEDMetric, WordMetric
  from mmocr.structures import TextRecogDataSample
label_desc: Use image node_id 3 for calling the TestWordMetric obj's underlying member method code with example usage: obj.test_word_acc_ignore_case_metric() without return types