code: def format_box(self, box):
      if self.box_format == "xyxy":
          x1, y1, x2, y2 = box
          box = [[x1, y1], [x2, y1], [x2, y2], [x1, y2]]
      elif self.box_format == "xywh":
          x, y, w, h = box
          x1, y1, x2, y2 = (
              x - w // 2,
              y - h // 2,
              x + w // 2,
              y + h // 2,
          )
          box = [[x1, y1], [x2, y1], [x2, y2], [x1, y2]]
      elif self.box_format == "xyxyxyxy":
          x1, y1, x2, y2, x3, y3, x4, y4 = box
          box = [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]
      return box
  
file_path: PaddleOCR/ppocr/metrics/table_metric.py
imports: import numpy
  from ppocr.metrics.det_metric import DetMetric
label_desc: Use image node_id 6 for calling the TableMetric obj's underlying member method code with example usage: obj.format_box(box) and returns: box