code: def save_image_w_lines(
      iproc_obj,
      imgfilebasename,
      orig_img_as_background,
      file_suffix_prefix="",
  ):
      file_suffix = "lines-orig" if orig_img_as_background else "lines"
  
      img_lines = iproc_obj.draw_lines(
          orig_img_as_background=orig_img_as_background
      )
      img_lines_file = os.path.join(
          OUTPUTPATH,
          "%s-%s.png"
          % (imgfilebasename, file_suffix_prefix + file_suffix),
      )
  
      print(
          "> saving image with detected lines to '%s'" % img_lines_file
      )
      cv2.imwrite(img_lines_file, img_lines)
  
file_path: pdftabextract/examples/schoollist_2/schoollist_2.py
imports: import os
  from math import radians, degrees
  import numpy
  import pandas
  import cv2
  from pdftabextract import imgproc
  from pdftabextract.geom import pt
  from pdftabextract.common import read_xml, parse_pages, save_page_grids, DIRECTION_HORIZONTAL, DIRECTION_VERTICAL
  from pdftabextract.textboxes import rotate_textboxes, border_positions_from_texts
  from pdftabextract.clustering import find_clusters_1d_break_dist, calc_cluster_centers_1d, zip_clusters_and_values
  from pdftabextract.splitpages import split_page_texts, create_split_pages_dict_structure
  from pdftabextract.extract import make_grid_from_positions, fit_texts_into_grid, datatable_to_dataframe
label_desc: Use image node_id 1 for calling a global function with example usage: save_image_w_lines(iproc_obj, imgfilebasename, orig_img_as_background, file_suffix_prefix) without return types