def assert_ast_equal(observed: ast.AST, expected: ast.AST) -> None:
    """Asserts the equality between two ASTs.

    Args:
        observed: An AST to compare.
        expected: Another AST.

    Raises:
        AssertionError: observed and expected represent different ASTs.
    """
    assert ast_equal(
        observed, expected
    ), f"""\
        AST does not match.
        observed={ast.dump(observed, indent=4)}
        expected={ast.dump(expected, indent=4)}
    """
Asserts the equality between two ASTs.

    Args:
        observed: An AST to compare.
        expected: Another AST.

    Raises:
        AssertionError: observed and expected represent different ASTs.
    
src/latexify/test_utils.py