code: def __call__(self, preds, batch, **kwargs):
      nodes, _ = preds
      gts, tag = batch[4].squeeze(0), batch[5].tolist()[0]
      gts = gts[: tag[0], :1].reshape([-1])
      self.node.append(nodes.numpy())
      self.gt.append(gts)
  
file_path: PaddleOCR/ppocr/metrics/kie_metric.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import paddle
label_desc: Use image node_id 2 for calling the KIEMetric obj's underlying member method code with example usage: obj.__call__(preds, batch) without return types