<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_syntax_errors(graph: BELGraph) -> List[WarningTuple]: """List the syntax errors encountered during compilation of a BEL script."""

    return [
        (path, exc, an)
        for path, exc, an in graph.warnings
        if isinstance(exc, BELSyntaxError)
    ]