code: def rotation(angle):
      """Construct a homogeneous 2D rotation matrix.
      Args
          angle: the angle in radians
      Returns
          the rotation matrix as 3 by 3 numpy array
      """
      return np.array(
          [
              [np.cos(angle), -np.sin(angle), 0],
              [np.sin(angle), np.cos(angle), 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 4 for calling a global function with example usage: rotation(angle) and returns: np