code: def parse_arguments():
      parser = argparse.ArgumentParser()
  
      parser.add_argument(
          "--nvme_dir",
          required=True,
          type=str,
          help="Directory in which to perform I/O tests. A writeable directory on a NVMe device.",
      )
  
      parser.add_argument(
          "--sweep_config",
          type=str,
          default=None,
          help="Performance sweep configuration json file.",
      )
  
      parser.add_argument(
          "--no_read",
          action="store_true",
          help="Disable read performance measurements.",
      )
  
      parser.add_argument(
          "--no_write",
          action="store_true",
          help="Disable write performance measurements.",
      )
  
      parser.add_argument(
          "--io_size",
          type=str,
          default="400M",
          help="Number of I/O bytes to read/write for performance measurements.",
      )
  
      parser.add_argument(
          "--no_sudo",
          action="store_true",
          help="Run without sudo access. Page cache will not be flushed and reported read speeds may be higher than actual.",
      )
  
      parser.add_argument(
          "--log_dir",
          type=str,
          default=BENCH_LOG_DIR,
          help=f'Output directory for performance log files. Default is {os.path.join(".", BENCH_LOG_DIR)}',
      )
  
      parser.add_argument(
          "--loops",
          type=int,
          default=1,
          help="Count of operation repetitions",
      )
  
      args = parser.parse_args()
      print(f"args = {args}")
  
      return args
  
imports: import os
  import sys
  import argparse
  import json
  import itertools
  import subprocess
  import shutil
  from test_ds_aio_utils import refine_integer_value
  from perf_sweep_utils import READ_OP_DESC, WRITE_OP_DESC, BENCH_LOG_DIR, READ_IO_DIR, WRITE_IO_DIR, READ_LOG_DIR, WRITE_LOG_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: parse_arguments() and returns: args