code: def histogram(img, thresh):
      hist = (np.ones(img.shape) - img).sum(dtype=np.int32, axis=1)
      _max = np.amax(hist)
      hist[hist[:] < _max * thresh] = 0
      return hist
  
file_path: Mozart/src/commonfunctions.py
imports: import skimage.io
  import matplotlib.pyplot
  import numpy
  from skimage.exposure import histogram
  from matplotlib.pyplot import bar
  from skimage.color import rgb2gray
  from skimage.filters import threshold_otsu, gaussian, median
  from skimage.morphology import binary_opening, binary_closing, binary_dilation, binary_erosion, closing, opening, square, skeletonize, disk
  from skimage.feature import canny
  from skimage.transform import resize
label_desc: Use image node_id 7 for calling a global function with example usage: histogram(img, thresh) and returns: hist