code: def affine_transform(pt, t):
      """Apply affine transform to a bounding box given transform matrix t.
  
      Parameters
      ----------
      pt : numpy.ndarray
          Bounding box with shape (1, 2).
      t : numpy.ndarray
          Transformation matrix with shape (2, 3).
  
      Returns
      -------
      numpy.ndarray
          New bounding box with shape (1, 2).
  
      """
      new_pt = np.array([pt[0], pt[1], 1.0], dtype=np.float32).T
      new_pt = np.dot(t, new_pt)
      return new_pt[:2]
  
file_path: gluon-cv/gluoncv/data/transforms/bbox.py
imports: from __future__ import division
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: affine_transform(pt, t) and returns: new_pt