code: def parse_args() -> Any:
      from argparse import ArgumentParser
  
      parser = ArgumentParser("Run iOS tests on AWS Device Farm")
      parser.add_argument(
          "--project-arn",
          type=str,
          required=True,
          help="the ARN of the project on AWS",
      )
      parser.add_argument(
          "--app-file",
          type=str,
          required=True,
          help="the iOS ipa app archive",
      )
      parser.add_argument(
          "--xctest-file",
          type=str,
          required=True,
          help="the XCTest suite to run",
      )
      parser.add_argument(
          "--name-prefix",
          type=str,
          required=True,
          help="the name prefix of this test run",
      )
      parser.add_argument(
          "--device-pool-arn",
          type=str,
          default=DEFAULT_DEVICE_POOL_ARN,
          help="the name of the device pool to test on",
      )
  
      return parser.parse_args()
  
file_path: pytorch/ios/TestApp/run_on_aws_devicefarm.py
imports: import datetime
  import os
  import random
  import string
  import sys
  import time
  import warnings
  from typing import Any
  import boto3
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser