code: def build_transformation_matrix(transform):
      """Convert transform list to transformation matrix
  
      :param transform: transform list as [dx, dy, da]
      :return: transform matrix as 2d (2, 3) numpy array
      """
      transform_matrix = np.zeros((2, 3))
  
      transform_matrix[0, 0] = np.cos(transform[2])
      transform_matrix[0, 1] = -np.sin(transform[2])
      transform_matrix[1, 0] = np.sin(transform[2])
      transform_matrix[1, 1] = np.cos(transform[2])
      transform_matrix[0, 2] = transform[0]
      transform_matrix[1, 2] = transform[1]
  
      return transform_matrix
  
file_path: PaddleHub/modules/video/Video_editing/SkyAR/utils.py
imports: import cv2
  import numpy
  from sklearn.neighbors import KernelDensity
label_desc: Use image node_id 1 for calling a global function with example usage: build_transformation_matrix(transform) and returns: transform_matrix