class_docstr: Nose test runner.
  
  This class is made available as numpy.testing.Tester, and a test function
  is typically added to a package's __init__.py like so::
  
    from numpy.testing import Tester
    test = Tester().test
  
  Calling this test function finds and runs all tests associated with the
  package and all its sub-packages.
  
  Attributes
  ----------
  package_path : str
      Full path to the package to test.
  package_name : str
      Name of the package to test.
  
  Parameters
  ----------
  package : module, str or None, optional
      The package to test. If a string, this should be the full path to
      the package. If None (default), `package` is set to the module from
      which `NoseTester` is initialized.
  raise_warnings : None, str or sequence of warnings, optional
      This specifies which warnings to configure as 'raise' instead
      of being shown once during the test execution.  Valid strings are:
  
        - "develop" : equals ``(Warning,)``
        - "release" : equals ``()``, don't raise on any warnings.
  
      Default is "release".
  depth : int, optional
      If `package` is None, then this can be used to initialize from the
      module of the caller of (the caller of (...)) the code that
      initializes `NoseTester`. Default of 0 means the module of the
      immediate caller; higher values are useful for utility routines that
      want to initialize `NoseTester` objects on behalf of other code.
class_docstr_tok: ["Nose","test","runner",".","This","class","is","made","available","as","numpy.testing.Tester",",","and","a","test","function","is","typically","added","to","a","package","'s","__init__.py","like","so",":",":","from","numpy.testing","import","Tester","test","=","Tester","(",")",".test","Calling","this","test","function","finds","and","runs","all","tests","associated","with","the","package","and","all","its","sub-packages",".","Attributes","--","--","--","--","--","package_path",":","str","Full","path","to","the","package","to","test",".","package_name",":","str","Name","of","the","package","to","test",".","Parameters","--","--","--","--","--","package",":","module",",","str","or","None",",","optional","The","package","to","test",".","If","a","string",",","this","should","be","the","full","path","to","the","package",".","If","None","(","default",")",",","`","package","`","is","set","to","the","module","from","which","`","NoseTester","`","is","initialized",".","raise_warnings",":","None",",","str","or","sequence","of","warnings",",","optional","This","specifies","which","warnings","to","configure","as","'raise","'","instead","of","being","shown","once","during","the","test","execution",".","Valid","strings","are",":","-","``","develop","''",":","equals","``","(","Warning",",",")","``","-","``","release","''",":","equals","``","(",")","``",",","do","n't","raise","on","any","warnings",".","Default","is","``","release","''",".","depth",":","int",",","optional","If","`","package","`","is","None",",","then","this","can","be","used","to","initialize","from","the","module","of","the","caller","of","(","the","caller","of","(","...",")",")","the","code","that","initializes","`","NoseTester","`",".","Default","of","0","means","the","module","of","the","immediate","caller",";","higher","values","are","useful","for","utility","routines","that","want","to","initialize","`","NoseTester","`","objects","on","behalf","of","other","code","."]
docstr: Run tests for module using nose.
  
  This method does the heavy lifting for the `test` method. It takes all
  the same arguments, for details see `test`.
  
  See Also
  --------
  test
docstr_tok: ["Run","tests","for","module","using","nose",".","This","method","does","the","heavy","lifting","for","the","`","test","`","method",".","It","takes","all","the","same","arguments",",","for","details","see","`","test","`",".","See","Also","--","--","--","--","test"]
code: def prepare_test_args(
      self,
      label="fast",
      verbose=1,
      extra_argv=None,
      doctests=False,
      coverage=False,
      timer=False,
  ):
      """
      Run tests for module using nose.
  
      This method does the heavy lifting for the `test` method. It takes all
      the same arguments, for details see `test`.
  
      See Also
      --------
      test
  
      """
      # fail with nice error message if nose is not present
      import_nose()
      # compile argv
      argv = self._test_argv(label, verbose, extra_argv)
      # our way of doing coverage
      if coverage:
          argv += [
              "--cover-package=%s" % self.package_name,
              "--with-coverage",
              "--cover-tests",
              "--cover-erase",
          ]
  
      if timer:
          if timer is True:
              argv += ["--with-timer"]
          elif isinstance(timer, int):
              argv += ["--with-timer", "--timer-top-n", str(timer)]
  
      # construct list of plugins
      import nose.plugins.builtin
      from nose.plugins import EntryPointPluginManager
      from .noseclasses import (
          KnownFailurePlugin,
          Unplugger,
          FPUModeCheckPlugin,
      )
  
      plugins = [KnownFailurePlugin()]
      plugins += [p() for p in nose.plugins.builtin.plugins]
      if self.check_fpu_mode:
          plugins += [FPUModeCheckPlugin()]
          argv += ["--with-fpumodecheckplugin"]
      try:
          # External plugins (like nose-timer)
          entrypoint_manager = EntryPointPluginManager()
          entrypoint_manager.loadPlugins()
          plugins += [p for p in entrypoint_manager.plugins]
      except ImportError:
          # Relies on pkg_resources, not a hard dependency
          pass
  
      # add doctesting if required
      doctest_argv = "--with-doctest" in argv
      if doctests == False and doctest_argv:
          doctests = True
      plug = self._get_custom_doctester()
      if plug is None:
          # use standard doctesting
          if doctests and not doctest_argv:
              argv += ["--with-doctest"]
      else:  # custom doctesting
          if (
              doctest_argv
          ):  # in fact the unplugger would take care of this
              argv.remove("--with-doctest")
          plugins += [Unplugger("doctest"), plug]
          if doctests:
              argv += ["--with-" + plug.name]
      return argv, plugins
  
file_path: catboost/contrib/python/numpy/py2/numpy/testing/_private/nosetester.py
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import warnings
  from numpy.compat import basestring
  import numpy
  from .utils import import_nose, suppress_warnings
label_desc: Use image node_id 5 for calling the NoseTester obj's underlying member method code with example usage: obj.prepare_test_args(label, verbose, extra_argv, doctests, coverage, timer) and returns: argv,  plugins