code: def _delete_discussions_title(lines):
      deletes = []
      to_delete = False
      for i, l in enumerate(lines):
          if "section*{Discussion" in l or "section{Discussion" in l:
              to_delete = True
          elif to_delete and "\\sphinxincludegraphics" in l:
              to_delete = False
          if to_delete:
              deletes.append(i)
      return delete_lines(lines, deletes)
  
file_path: d2l-en/static/post_latex/main.py
imports: import os
  import re
  import regex
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: _delete_discussions_title(lines) and returns: delete_lines