code: def box_to_point4(boxes):
      """
      Convert boxes to its corner points.
  
      Args:
          boxes: nx4
  
      Returns:
          (nx4)x2
      """
      b = boxes[:, [0, 1, 2, 3, 0, 3, 2, 1]]
      b = b.reshape((-1, 2))
      return b
  
file_path: tensorpack/examples/FasterRCNN/common.py
imports: import numpy
  import cv2
  from tensorpack.dataflow import RNGDataFlow
  from tensorpack.dataflow.imgaug import ImageAugmentor, ResizeTransform
label_desc: Use image node_id 1 for calling a global function with example usage: box_to_point4(boxes) and returns: b