code: def main():
      # iptest doesn't work correctly if the working directory is the
      # root of the IPython source tree. Tell the user to avoid
      # frustration.
      if os.path.exists(
          os.path.join(os.getcwd(), "IPython", "testing", "__main__.py")
      ):
          print(
              "Don't run iptest from the IPython source directory",
              file=sys.stderr,
          )
          sys.exit(1)
      # Arguments after -- should be passed through to nose. Argparse treats
      # everything after -- as regular positional arguments, so we separate them
      # first.
      try:
          ix = sys.argv.index("--")
      except ValueError:
          to_parse = sys.argv[1:]
          extra_args = []
      else:
          to_parse = sys.argv[1:ix]
          extra_args = sys.argv[ix + 1 :]
  
      options = argparser.parse_args(to_parse)
      options.extra_args = extra_args
  
      run_iptestall(options)
  
imports: from __future__ import print_function
  import argparse
  import json
  import multiprocessing.pool
  import os
  import stat
  import re
  import requests
  import shutil
  import signal
  import sys
  import subprocess
  import time
  from .iptest import have, test_group_names, test_sections, StreamCapturer, test_for
  from IPython.utils.path import compress_user
  from IPython.utils.py3compat import bytes_to_str
  from IPython.utils.sysinfo import get_sys_info
  from IPython.utils.tempdir import TemporaryDirectory
  from IPython.utils.text import strip_ansi
label_desc: Use image node_id 6 for calling a global function with example usage: main() without return types