code: def affine_transform(pt, t):
      new_pt = np.array([pt[0], pt[1], 1.0]).T
      new_pt = np.dot(t, new_pt)
      return new_pt[:2]
  
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 5 for calling a global function with example usage: affine_transform(pt, t) and returns: new_pt