code: def remove_shadow(image):
      rgb_planes = cv.split(image)
      result_planes = []
      for plane in rgb_planes:
          dilated_img = cv.dilate(plane, np.ones((5, 5), np.uint8))
          bg_img = cv.medianBlur(dilated_img, 11)
          diff_img = 255 - cv.absdiff(plane, bg_img)
          result_planes.append(diff_img)
  
      return cv.merge(result_planes)
  
file_path: doc-parsr/server/assets/ImageCorrection.py
imports: from __future__ import print_function
  import numpy
  import cv2
  import json
  import math
  from pathlib import Path
  import re
  import os
  import sys
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: remove_shadow(image) and returns: cv