class_docstr: Nose test runner.
  
  This class enables running nose tests from inside Theano,
  by calling theano.test().
  This version is more adapted to what we want than Numpy's one.
class_docstr_tok: ["Nose","test","runner",".","This","class","enables","running","nose","tests","from","inside","Theano",",","by","calling","theano.test","(",")",".","This","version","is","more","adapted","to","what","we","want","than","Numpy","'s","one","."]
docstr: Prepare arguments for the `test` method.
  
  Takes the same arguments as `test`.
docstr_tok: ["Prepare","arguments","for","the","`","test","`","method",".","Takes","the","same","arguments","as","`","test","`","."]
code: def prepare_test_args(
      self,
      verbose=1,
      extra_argv=None,
      coverage=False,
      capture=True,
      knownfailure=True,
  ):
      """
      Prepare arguments for the `test` method.
  
      Takes the same arguments as `test`.
      """
      import nose.plugins.builtin
  
      # compile argv
      argv = self._test_argv(verbose, extra_argv)
  
      # numpy way of doing coverage
      if coverage:
          argv += [
              "--cover-package=%s" % self.package_name,
              "--with-coverage",
              "--cover-tests",
              "--cover-inclusive",
              "--cover-erase",
          ]
  
      # Capture output only if needed
      if not capture:
          argv += ["-s"]
  
      # construct list of plugins
      plugins = []
      if knownfailure:
          from numpy.testing.noseclasses import KnownFailure
  
          plugins.append(KnownFailure())
      plugins += [p() for p in nose.plugins.builtin.plugins]
  
      return argv, plugins
  
file_path: Theano/theano/tests/main.py
imports: from __future__ import absolute_import, print_function, division
  import os
  import unittest
  import sys
  from numpy.testing.nosetester import NoseTester
label_desc: Use image node_id 3 for calling the TheanoNoseTester obj's underlying member method code with example usage: obj.prepare_test_args(verbose, extra_argv, coverage, capture, knownfailure) and returns: argv,  plugins