code: def main():
      parser = argparse.ArgumentParser("resample.py")
      parser.add_argument("-d", "--device", default="cpu")
      args = parser.parse_args()
  
      if args.device == "cpu":
          table = MarkdownTable(
              [
                  "Old sr",
                  "New sr",
                  "Julius (ms)",
                  "Resampy (ms)",
                  "Delta (%)",
              ]
          )
      else:
          table = MarkdownTable(["Old sr", "New sr", "Julius (ms)"])
      table.header()
  
      rates = [
          (2, 1),
          (1, 2),
          (4, 5),
          (10, 11),
          (44100, 16000),
          (20001, 30001),
      ]
      for old_sr, new_sr in rates:
          test(table, old_sr, new_sr, device=args.device)
  
file_path: julius/bench/resample.py
imports: import argparse
  import math
  import resampy
  import torch
  from julius import resample_frac
  from julius.utils import Chrono, MarkdownTable
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types