code: def test_getitem(self):
      data = self.dataset.__getitem__(0)
  
      instance = data["instances"][0]
      self.assertIsInstance(instance["bbox_label"], int)
      self.assertIsInstance(instance["edge_label"], int)
      self.assertIsInstance(instance["text"], str)
      self.assertEqual(instance["bbox"].shape, (4,))
      self.assertEqual(data["img_shape"], (1200, 1600))
      self.assertEqual(
          data["img_path"],
          "data/tests/data/kie_toy_dataset/wildreceipt/1.jpeg",  # noqa
      )
  
imports: import unittest
  from mmocr.datasets import WildReceiptDataset
label_desc: Use image node_id 3 for calling the TestWildReceiptDataset obj's underlying member method code with example usage: obj.test_getitem() without return types