def METHOD_NAME(module):
    dbdir = os.path.join(os.getcwd(),'.openravetest')
    os.environ['OPENRAVE_DATABASE'] = dbdir
    os.environ['OPENRAVE_HOME'] = dbdir
    if hasattr(os,'putenv'):
        os.putenv('OPENRAVE_DATABASE',dbdir)
        os.putenv('OPENRAVE_HOME',dbdir)
    RaveInitialize(load_all_plugins=True, level=DebugLevel.Info|DebugLevel.VerifyPlans)
    if hasattr(os.path,'samefile'):
        assert(os.path.samefile(RaveGetHomeDirectory(),dbdir))
    else:
        assert(RaveGetHomeDirectory()==dbdir)
    try:
        colorize=__import__('logutils.colorize',fromlist=['colorize'])
        handler = colorize.ColorizingStreamHandler()
        handler.level_map[logging.DEBUG] =(None, 'green', False)
        handler.level_map[logging.INFO] = (None, None, False)
        handler.level_map[logging.WARNING] = (None, 'yellow', False)
        handler.level_map[logging.ERROR] = (None, 'red', False)
        handler.level_map[logging.CRITICAL] = ('white', 'magenta', True)
    except ImportError:
        handler = logging.StreamHandler()
        raveLogVerbose('python logutils not present so cannot colorize python output.')
    handler.setFormatter(logging.Formatter('%(name)s.%(funcName)s (pid='+str(os.getpid())+'): %(message)s'))
    log.setLevel(logging.INFO)
    log.addHandler(handler)
    logging.getLogger('openravepy').setLevel(logging.INFO)
    logging.getLogger('openravepy').addHandler(handler)