code: def __init__(self, pred_idx=-1, label_idx=-1, name="RPNAcc"):
      super(RPNAccMetric, self).__init__(name)
      self.pred, self.label = get_rpn_names()
      # self.name = 'RPNAcc'
      self.name = [name, name + "_BG", name + "_FG"]
      self.pred_idx = pred_idx
      self.label_idx = label_idx
      self.STAT = [0, 0, 0]
  
imports: from __future__ import print_function
  import sys
  import mxnet
  import numpy
  from rcnn.config import config
label_desc: Use image node_id 1 to create a new RPNAccMetric object from inherited base classes: mx.metric with example: obj = RPNAccMetric(pred_idx, label_idx, name)