def METHOD_NAME(tree: FunctionDef) -> list[Raise]:
    class FindRaises(NodeVisitor):
        def __init__(self) -> None:
            self.raises: list[Raise] = []
        def visit_Raise(self, node: Raise) -> None:
            self.raises.append(node)
    ff = FindRaises()
    ff.visit(tree)
    return ff.raises