def import_nose():
fine_nose = True<EOL>minimum_nose_version = (<NUM_LIT:0>, <NUM_LIT:10>, <NUM_LIT:0>)<EOL>try:<EOL><INDENT>import nose<EOL><DEDENT>except ImportError:<EOL><INDENT>fine_nose = False<EOL><DEDENT>else:<EOL><INDENT>if nose.__versioninfo__ < minimum_nose_version:<EOL><INDENT>fine_nose = False<EOL><DEDENT><DEDENT>if not fine_nose:<EOL><INDENT>msg = '<STR_LIT>''<STR_LIT>' %minimum_nose_version<EOL>raise ImportError(msg)<EOL><DEDENT>return nose<EOL>
Import nose only when needed.