class_docstr: A command-line program that runs a set of tests; this is primarily
  for making test modules conveniently executable.
class_docstr_tok: ["A","command-line","program","that","runs","a","set","of","tests",";","this","is","primarily","for","making","test","modules","conveniently","executable","."]
code: def _do_discovery(self, argv, Loader=None):
      self.start = "."
      self.pattern = "test*.py"
      self.top = None
      if argv is not None:
          # handle command line args for test discovery
          if self._discovery_parser is None:
              # for testing
              self._initArgParsers()
          self._discovery_parser.parse_args(argv, self)
  
      self.createTests(from_discovery=True, Loader=Loader)
  
file_path: cpython/Lib/unittest/main.py
imports: import sys
  import argparse
  import os
  from .None import loader, runner
  from .signals import installHandler
label_desc: Use image node_id 9 for calling the TestProgram obj's underlying member method code with example usage: obj._do_discovery(argv, Loader) without return types