def _get_function(func_name):
    current_module = sys.modules[__name__]
    func_list = list((func for func in current_module.__dict__.itervalues()
                      if _is_mod_function(current_module, func) and func.__name__ == func_name))

    try:
        func_list = func_list[0]
    except __HOLE__ as e:
        LOG.info("Function not found! {}".format(e))
        return None

    return func_list
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/maintenance/registered_functions/functools.py/_get_function