code: def copy_strip():
      """Copy idle.html to idlelib/help.html, stripping trailing whitespace.
  
      Files with trailing whitespace cannot be pushed to the hg cpython
      repository.  For 3.x (on Windows), help.html is generated, after
      editing idle.rst in the earliest maintenance version, with
        sphinx-build -bhtml . build/html
        python_d.exe -c "from idlelib.help import copy_strip; copy_strip()"
      After refreshing TortoiseHG workshop to generate a diff,
      check  both the diff and displayed text.  Push the diff along with
      the idle.rst change and merge both into default (or an intermediate
      maintenance version).
  
      When the 'earlist' version gets its final maintenance release,
      do an update as described above, without editing idle.rst, to
      rebase help.html on the next version of idle.rst.  Do not worry
      about version changes as version is not displayed.  Examine other
      changes and the result of Help -> IDLE Help.
  
      If maintenance and default versions of idle.rst diverge, and
      merging does not go smoothly, then consider generating
      separate help.html files from separate idle.htmls.
      """
      src = join(
          abspath(dirname(dirname(dirname(__file__)))),
          "Doc",
          "build",
          "html",
          "library",
          "idle.html",
      )
      dst = join(abspath(dirname(__file__)), "help.html")
      with open(src, "r") as inn, open(dst, "w") as out:
          for line in inn:
              out.write(line.rstrip() + "\n")
      print("idle.html copied to help.html")
  
imports: from HTMLParser import HTMLParser
  from os.path import abspath, dirname, isdir, isfile, join
  from platform import python_version
  from Tkinter import Tk, Toplevel, Frame, Text, Scrollbar, Menu, Menubutton
  import tkFont
  from idlelib.configHandler import idleConf
label_desc: Use image node_id 1 for calling a global function with example usage: copy_strip() without return types