code: def get_comment_header(line):
      """Return string with leading whitespace and '#' from line or ''.
  
      A null return indicates that the line is not a comment line. A non-
      null return, such as '    #', will be used to find the other lines of
      a comment block with the same  indent.
      """
      m = re.match(r"^([ \t]*#*)", line)
      if m is None:
          return ""
      return m.group(1)
  
imports: import re
  from tkinter.messagebox import askyesno
  from tkinter.simpledialog import askinteger
  from idlelib.config import idleConf
label_desc: Use image node_id 6 for calling a global function with example usage: get_comment_header(line) and returns: m, str