code: def main():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "log_filepath",
          type=str,
          help="Path to log-file to be rotated.",
      )
      parser.add_argument(
          "--max-num-log-files",
          type=int,
          help="Maximum number of log-files to be kept.",
          default=1000,
      )
      args = parser.parse_args()
  
      rotate(args.log_filepath, args.max_num_log_files)
  
imports: import argparse
  import shutil
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types