code: def transformBoxInvert(pt, ul, br, resH, resW):
      # type: (Tensor, Tensor, Tensor, float, float, float, float) -> Tensor
  
      center = mx.nd.zeros(2)
      center[0] = (br[0] - 1 - ul[0]) / 2
      center[1] = (br[1] - 1 - ul[1]) / 2
  
      lenH = max(br[1] - ul[1], (br[0] - ul[0]) * resH / resW)
      lenW = lenH * resW / resH
  
      _pt = (pt * lenH) / resH
  
      if bool(((lenW - 1) / 2 - center[0]) > 0):
          _pt[0] = _pt[0] - ((lenW - 1) / 2 - center[0]).asscalar()
      if bool(((lenH - 1) / 2 - center[1]) > 0):
          _pt[1] = _pt[1] - ((lenH - 1) / 2 - center[1]).asscalar()
  
      new_point = mx.nd.zeros(2)
      new_point[0] = _pt[0] + ul[0]
      new_point[1] = _pt[1] + ul[1]
      return new_point
  
imports: from __future__ import absolute_import
  from __future__ import division
  import math
  import random
  import numpy
  import mxnet
  from mxnet import nd, image
  from mxnet.gluon.data.vision import transforms
  from ...utils.filesystem import try_import_cv2
label_desc: Use image node_id 27 for calling a global function with example usage: transformBoxInvert(pt, ul, br, resH, resW) and returns: new_point