code: def get_region_lines_indices(self, region):
      indices = get_line_indices(histogram(region, 0.8))
      lines = []
      for line_index in indices:
          line = []
          for k in range(self.thickness):
              line.append(line_index + k)
          lines.append(line)
      self.rows.append([np.average(x) for x in lines])
  
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 9 for calling a global function with example usage: get_region_lines_indices(region) without return types