code: def main(argv: Sequence[str] | None = None) -> None:
      parser = argparse.ArgumentParser()
      parser.add_argument("paths", nargs="*")
      args = parser.parse_args(argv)
  
      for path in args.paths:
          with open(path, encoding="utf-8") as fd:
              content = fd.read()
          mutated, new_content = check_for_bool_in_generic(content)
          if mutated:
              with open(path, "w", encoding="utf-8") as fd:
                  fd.write(new_content)
  
file_path: pandas/scripts/no_bool_in_generic.py
imports: from __future__ import annotations
  import argparse
  import ast
  import collections
  from typing import TYPE_CHECKING
label_desc: Use image node_id 4 for calling a global function with example usage: main(argv) without return types