def prefix_as_comment(comment_prefix, text):
    return text.replace('\n', '\n' + comment_prefix)
Locates a module while enforcing module import restrictions.
dataset/ETHPy150Open bigmlcom/python/bigml/util.py/prefix_as_comment--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/dev_appserver_import_hook.py/HardenedModulesHook.FindModuleRestricted