<s> import os <EOL> import decorator <EOL> from rally . common . plugin import discover <EOL> PLUGINS_LOADED = False <EOL> def load ( ) : <EOL> global PLUGINS_LOADED <EOL> if not PLUGINS_LOADED : <EOL> discover . import_modules_from_package ( "<STR_LIT>" ) <EOL> discover . import_modules_from_package ( "<STR_LIT>" ) <EOL> discover . import_modules_from_package ( "<STR_LIT>" ) <EOL> discover . load_plugins ( "<STR_LIT>" ) <EOL> discover . load_plugins ( os . path . expanduser ( "<STR_LIT>" ) ) <EOL> PLUGINS_LOADED = True <EOL> @ decorator . decorator <EOL> def ensure_plugins_are_loaded ( f , * args , ** kwargs ) : <EOL> load ( ) <EOL> return f ( * args , ** kwargs ) </s>
