code: def main() -> None:
      parser = argparse.ArgumentParser(
          description="Export W&B run history", allow_abbrev=False
      )
      parser.add_argument("--run", required=True)
      parser.add_argument("--db_file", default=DB_FILE)
      parser.add_argument("--db_table")
      parser.add_argument("--history_exclude_prefix")
      parser.add_argument("--read_page_size", type=int)
      parser.add_argument("--write_page_size", type=int)
      parser.add_argument("--db_replace", action="store_true")
  
      args = parser.parse_args()
  
      written = wandb_export_history(
          run=args.run,
          db_file=args.db_file,
          db_table=args.db_table,
          db_replace=args.db_replace,
          history_exclude_prefix=args.history_exclude_prefix,
          read_page_size=args.read_page_size,
          write_page_size=args.write_page_size,
      )
      print(f"Wrote {written} records to {args.db_file}")
  
file_path: wandb/tools/wandb_export_history.py
imports: import argparse
  import sqlite3
  from typing import Dict, Iterator, List
  import pandas
  import wandb
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types