code: def main() -> None:
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "fname", help="path to an ipynb file to optimize", type=Path
      )
      parser.add_argument(
          "--update-ckpts",
          help="update checkpoints in .ipynb_checkpoints subdirs",
          action="store_true",
      )
      args = parser.parse_args()
      update_file(args.fname.resolve(), args.update_ckpts)
  
imports: import argparse
  import logging
  from pathlib import Path
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types