code: def _fix_indent_at_chap_start(lines):
      is_chap_start = False
      for i, l in enumerate(lines):
          if l.startswith("\\chapter"):
              is_chap_start = True
          if is_chap_start and l.startswith("\\sphinxAtStartPar"):
              lines[i] = ""
              is_chap_start = False
  
file_path: d2l-en/static/post_latex/main.py
imports: import os
  import re
  import regex
  import sys
label_desc: Use image node_id 14 for calling a global function with example usage: _fix_indent_at_chap_start(lines) without return types