import ast


def get_functions(_ast):
    """
    Gets all function definitions immediately below an ast node
    @param _ast the ast node to search for functions in
    @return a tuple of function definition ast nodes
    """
    return (node for node in _ast.body if isinstance(node, ast.FunctionDef))