code: def scaling(factor):
      """Construct a homogeneous 2D scaling matrix.
      Args
          factor: a 2D vector for X and Y scaling
      Returns
          the zoom matrix as 3 by 3 numpy array
      """
      return np.array([[factor[0], 0, 0], [0, factor[1], 0], [0, 0, 1]])
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/utils/transform.py
imports: import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: scaling(factor) and returns: np