code: def auto_canny(image, sigma=0.33):
      # compute the median of the single channel pixel intensities
      v = np.median(image)
  
      # apply automatic Canny edge detection using the computed median
      lower = int(max(0, (1.0 - sigma) * v))
      upper = int(min(255, (1.0 + sigma) * v))
      edged = cv2.Canny(image, lower, upper)
  
      # return the edged image
      return edged
  
file_path: imutils/imutils/convenience.py
imports: import numpy
  import cv2
  import sys
label_desc: Use image node_id 8 for calling a global function with example usage: auto_canny(image, sigma) and returns: edged