code: def setup_parser(parser):
      parser.add_argument(
          "-i",  # "--include",
          help="Include test module names matching REGEX",
          action="append",
          dest="include",
          default=[],
          type=str,
          metavar="REGEX",
      )
      parser.add_argument(
          "-e",  # "--exclude",
          help="Exclude test module names matching REGEX",
          action="append",
          dest="exclude",
          default=[],
          type=str,
          metavar="REGEX",
      )
      parser.add_argument(
          "--no-builddir",
          help="Disable testing from build directory",
          action="store_false",
          dest="builddir",
          default=True,
      )
      parser.add_argument(
          "--path",
          help="Prepend PATH to sys.path",
          action="append",
          dest="path",
          default=[],
          type=str,
          metavar="PATH",
      )
      parser.add_argument(
          "--threads",
          help="Initialize MPI with thread support",
          action="store_true",
          dest="threads",
          default=None,
      )
      parser.add_argument(
          "--no-threads",
          help="Initialize MPI without thread support",
          action="store_false",
          dest="threads",
          default=None,
      )
      parser.add_argument(
          "--thread-level",
          help="Initialize MPI with required thread support",
          choices=["single", "funneled", "serialized", "multiple"],
          action="store",
          dest="thread_level",
          default=None,
          type=str,
          metavar="LEVEL",
      )
      parser.add_argument(
          "--cupy",
          help="Enable testing with CuPy arrays",
          action="store_true",
          dest="cupy",
          default=False,
      )
      parser.add_argument(
          "--no-cupy",
          help="Disable testing with CuPy arrays",
          action="store_false",
          dest="cupy",
          default=False,
      )
      parser.add_argument(
          "--numba",
          help="Enable testing with Numba arrays",
          action="store_true",
          dest="numba",
          default=False,
      )
      parser.add_argument(
          "--no-numba",
          help="Disable testing with Numba arrays",
          action="store_false",
          dest="numba",
          default=False,
      )
      parser.add_argument(
          "--no-numpy",
          help="Disable testing with NumPy arrays",
          action="store_false",
          dest="numpy",
          default=True,
      )
      parser.add_argument(
          "--no-array",
          help="Disable testing with builtin array module",
          action="store_false",
          dest="array",
          default=True,
      )
      parser.add_argument(
          "--no-skip-mpi",
          help="Disable known failures with backend MPI",
          action="store_false",
          dest="skip_mpi",
          default=True,
      )
      return parser
  
imports: import re
  import os
  import sys
  import argparse
  import unittest
label_desc: Use image node_id 1 for calling a global function with example usage: setup_parser(parser) and returns: parser