def get_return_info(ret, annotation):
    """
    Extract info from a node containing a return statement

    Args:
        ret: the return node
        annotation: the funcation annotation (may be None)

    Returns:
        tuple: type, expression after 'return' keyword
    """
    ret_type = annotation.value if annotation else 'TYPE'
    expression = "".join(x.get_code().strip() for x in ret.children[1:])
    expression = " ".join(expression.split())
    return ret_type, expression