docstr: Run Tests. Returns true on success, false on failure, and
  sets self.success to the same value.
  
  Because nose currently discards the test result object, but we need
  to return it to the user, override TestProgram.runTests to retain
  the result
docstr_tok: ["Run","Tests",".","Returns","true","on","success",",","false","on","failure",",","and","sets","self.success","to","the","same","value",".","Because","nose","currently","discards","the","test","result","object",",","but","we","need","to","return","it","to","the","user",",","override","TestProgram.runTests","to","retain","the","result"]
code: def runTests(self):
      """Run Tests. Returns true on success, false on failure, and
      sets self.success to the same value.
  
      Because nose currently discards the test result object, but we need
      to return it to the user, override TestProgram.runTests to retain
      the result
      """
      if self.testRunner is None:
          self.testRunner = nose.core.TextTestRunner(
              stream=self.config.stream,
              verbosity=self.config.verbosity,
              config=self.config,
          )
      plug_runner = self.config.plugins.prepareTestRunner(
          self.testRunner
      )
      if plug_runner is not None:
          self.testRunner = plug_runner
      self.result = self.testRunner.run(self.test)
      self.success = self.result.wasSuccessful()
      return self.success
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import doctest
  import inspect
  import numpy
  import nose
  from nose.plugins import doctests
  from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
  from nose.plugins.base import Plugin
  from nose.util import src
  from .nosetester import get_package_name
  from .utils import KnownFailureException, KnownFailureTest
label_desc: Use image node_id 1 for calling the NumpyTestProgram obj's underlying member method code with example usage: obj.runTests() and returns: self