code: def _rotate(degrees:uniform):
      "Rotate image by `degrees`."
      angle = degrees * math.pi / 180
      return [[cos(angle), -sin(angle), 0.],
              [sin(angle),  cos(angle), 0.],
              [0.        ,  0.        , 1.]f _rotate(degrees:uniform):
      "Rotate image by `degrees`."
      angle = degrees * math.pi / 180
      return [[cos(angle), -sin(angle), 0.],
              [sin(angle),  cos(angle), 0.],
              [0.        ,  0.        , 1.]]
docs: Rotate image by `degrees`.