class_docstr: A command-line program that runs a set of tests; this is primarily
  for making test modules conveniently executable.
code: def createTests(self, from_discovery=False, Loader=None):
      if self.testNamePatterns:
          self.testLoader.testNamePatterns = self.testNamePatterns
      if from_discovery:
          loader = self.testLoader if Loader is None else Loader()
          self.test = loader.discover(
              self.start, self.pattern, self.top
          )
      elif self.testNames is None:
          self.test = self.testLoader.loadTestsFromModule(self.module)
      else:
          self.test = self.testLoader.loadTestsFromNames(
              self.testNames, self.module
          )
  
imports: import sys
  import argparse
  import os
  import warnings
  from .None import loader, runner
  from .signals import installHandler
label_desc: Use image node_id 5 for calling the TestProgram obj's underlying member method code with example usage: obj.createTests(from_discovery, Loader) without return types