code: def main():
      parser = argparse.ArgumentParser(
          description="Edits or compares the table of all algorithms and their demos in `demos/README.md` and `docs/demos/index.rst`"
      )
      parser.add_argument(
          "--action",
          choices=["compare", "overwrite"],
          default="compare",
          help="whether to compare the tables against what would be generated, or to overwrite them table with new ones (default: %(default)s)",
      )
      args = parser.parse_args()
  
      tables(args.action)
      demo_indexing(args.action)
  
imports: import abc
  import argparse
  import contextlib
  import difflib
  import enum
  import glob
  import itertools
  import json
  import nbformat
  import os.path
  import re
  import subprocess
  import sys
  import textwrap
label_desc: Use image node_id 12 for calling a global function with example usage: main() without return types