def requireAdmin(user, message=None):
    if user is None or user.get('admin', False) is not True:
        raise AccessException(message or 'Administrator access required.')
Take a string representing a python function or class and import it.
dataset/ETHPy150Open girder/girder/girder/api/rest.py/requireAdmin--crossover with--dataset/ETHPy150Open BenoitDamota/mempamal/mempamal/dynamic.py/dynamic_import