docs: def main(argv):
      """If passed an arg, treat it as a PID, otherwise portpicker uses getpid."""
      port = pick_unused_port(pid=int(argv[1]) if len(argv) > 1 else None)
      if not port:
          sys.exit(1)
      print(port)