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