code: def parse_opts():
      parser = ArgumentParser(prog="run-tests")
      parser.add_argument(
          "-p",
          "--parallelism",
          type=int,
          default=8,
          help="The number of suites to test in parallel (default %(default)d)",
      )
      parser.add_argument(
          "--python-executables",
          type=str,
          default="python3.9",
          help="A comma-separated list of Python executables to test against (default: %(default)s)",
      )
      parser.add_argument(
          "-m",
          "--modules",
          type=str,
          default=None,
          help="A comma-separated list of modules to test "
          "(default: %s)"
          % ",".join(sorted([m.name for m in modules.all_modules])),
      )
      parser.add_argument(
          "-e",
          "--excluded-tags",
          type=str,
          default=None,
          help="A comma-separated list of tags to exclude in the tests, "
          "e.g., org.apache.spark.tags.ExtendedHiveTest ",
      )
      parser.add_argument(
          "-i",
          "--included-tags",
          type=str,
          default=None,
          help="A comma-separated list of tags to include in the tests, "
          "e.g., org.apache.spark.tags.ExtendedHiveTest ",
      )
  
      args, unknown = parser.parse_known_args()
      if unknown:
          parser.error("Unsupported arguments: %s" % " ".join(unknown))
      if args.parallelism < 1:
          parser.error("Parallelism cannot be less than 1")
      return args
  
imports: import itertools
  from argparse import ArgumentParser
  import os
  import re
  import sys
  import subprocess
  from sparktestsupport import SPARK_HOME, USER_HOME, ERROR_CODES
  from sparktestsupport.shellutils import exit_from_command_with_retcode, run_cmd, rm_r, which
  from sparktestsupport.utils import determine_modules_for_files, determine_modules_to_test, determine_tags_to_exclude, identify_changed_files_from_git_commits
  import sparktestsupport.modules
label_desc: Use image node_id 28 for calling a global function with example usage: parse_opts() and returns: args