code: def help():
      help_msg = """
          This script behaves mostly the same as the `nosetests` command.
  
          The main difference is that it loads automatically the
          KnownFailure plugin, in order to hide KnownFailureTests error
          messages. It also supports executing tests by batches.
  
          Local options:
  
              --help, -h: Displays this help.
  
              --batch[=n]:
                  If specified without option '--time-profile', do not run all
                  the tests in one run, but split the execution in batches of
                  `n` tests each. Default n is 100.
  
              --time-profile:
                  Each test will be run and timed separately and the results will
                  be deposited in the files 'timeprof_sort', 'timeprof_nosort'
                  and 'timeprof_rawlog' in the current directory. If the
                  '--batch[=n]' option is also specified, notification of the
                  progresses will be made to standard output after every group of
                  n tests. Otherwise, notification will occur after every group
                  of 100 tests.
  
                  The files 'timeprof_sort' and 'timeprof_nosort' both contain one
                  record for each test and comprise the following fields:
                  - test running-time
                  - nosetests sequential test number
                  - test name
                  - name of class to which test belongs (if any), otherwise full
                    information is contained in test name
                  - test outcome ('OK', 'SKIPPED TEST', 'FAILED TEST' or
                    'FAILED PARSING')
  
                  In 'timeprof_sort', test records are sorted according to
                  running-time whereas in 'timeprof_nosort' records are reported
                  according to sequential number. The former classification is the
                  main information source for time-profiling. Since tests belonging
                  to same or close classes and files have close sequential, the
                  latter may be used to identify duration patterns among the tests
                  numbers. A full log is also saved as 'timeprof_rawlog'.
  
              --without-knownfailure: Do not load the KnownFailure plugin.
  
              --theano: This parameter is replaced with the path to the theano
                        library. As theano-nose is a wrapper to nosetests, it
                        expects a path to the tests to run.
                        If you do not know where theano is installed, use this
                        option to have it inserted automatically.
  
              --debug-batch:
                  Use this parameter to run nosetests with options '--verbose',
                  '--nocapture' and '--detailed-errors' and show the output of
                  nosetests during batch execution.  This can be useful to debug
                  situations where re-running only the failed tests after batch
                  execution is not working properly. This option can only be used
                  in conjunction with the '--batch=[n]' argument.
  
          The other options will be passed to nosetests, see ``nosetests -h``.
          """
  
      print(textwrap.dedent(help_msg))
  
file_path: Theano/bin/theano_nose.py
imports: from __future__ import print_function
  import logging
  import os
  import nose
  import textwrap
  import sys
  import warnings
  from nose.plugins import Plugin
label_desc: Use image node_id 2 for calling a global function with example usage: help() without return types