code: def run_module_suite(file_to_run=None, argv=None):
      """
      Run a test module.
  
      Equivalent to calling ``$ nosetests <argv> <file_to_run>`` from
      the command line
  
      Parameters
      ----------
      file_to_run : str, optional
          Path to test module, or None.
          By default, run the module from which this function is called.
      argv : list of strings
          Arguments to be passed to the nose test runner. ``argv[0]`` is
          ignored. All command line arguments accepted by ``nosetests``
          will work. If it is the default value None, sys.argv is used.
  
          .. versionadded:: 1.9.0
  
      Examples
      --------
      Adding the following::
  
          if __name__ == "__main__" :
              run_module_suite(argv=sys.argv)
  
      at the end of a test module will run the tests when that module is
      called in the python interpreter.
  
      Alternatively, calling::
  
      >>> run_module_suite(file_to_run="numpy/tests/test_matlib.py")  # doctest: +SKIP
  
      from an interpreter will run all the test routine in 'test_matlib.py'.
      """
      if file_to_run is None:
          f = sys._getframe(1)
          file_to_run = f.f_locals.get("__file__", None)
          if file_to_run is None:
              raise AssertionError
  
      if argv is None:
          argv = sys.argv + [file_to_run]
      else:
          argv = argv + [file_to_run]
  
      nose = import_nose()
      from .noseclasses import KnownFailurePlugin
  
      nose.run(argv=argv, addplugins=[KnownFailurePlugin()])
  
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 2 for calling a global function with example usage: run_module_suite(file_to_run, argv) without return types