code: def rerec(bboxA):
      # convert bboxA to square
      h = bboxA[:, 3] - bboxA[:, 1]
      w = bboxA[:, 2] - bboxA[:, 0]
      l = np.maximum(w, h)
      bboxA[:, 0] = bboxA[:, 0] + w * 0.5 - l * 0.5
      bboxA[:, 1] = bboxA[:, 1] + h * 0.5 - l * 0.5
      bboxA[:, 2:4] = bboxA[:, 0:2] + np.transpose(np.tile(l, (2, 1)))
      return bboxA
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import cv2
  import os
  import inspect
label_desc: Use image node_id 9 for calling a global function with example usage: rerec(bboxA) and returns: bboxA