code: def deskew(image):
      edges = canny(
          image, low_threshold=50, high_threshold=150, sigma=2
      )
      harris = corner_harris(edges)
      tested_angles = np.linspace(-np.pi / 2, np.pi / 2, 360)
      h, theta, d = hough_line(harris, theta=tested_angles)
      out, angles, d = hough_line_peaks(h, theta, d)
      rotation_number = np.average(np.degrees(angles))
      if rotation_number < 45 and rotation_number != 0:
          rotation_number += 90
      return rotation_number
  
file_path: Mozart/src/pre_processing.py
imports: from commonfunctions import *
  from skimage.transform import probabilistic_hough_line, hough_line, rotate, hough_line_peaks
  from skimage.feature import corner_harris
  import cv2
  from staff import *
label_desc: Use image node_id 1 for calling a global function with example usage: deskew(image) and returns: rotation_number