def _make_ast(body: list[ast.stmt]) -> ast.Module:
    """Helper function to generate an AST for f(x).

    Args:
        body: The function body.

    Returns:
        Generated AST.
    """
    return ast.Module(
        body=[
            ast_utils.create_function_def(
                name="f",
                args=ast.arguments(
                    args=[ast.arg(arg="x")],
                    kwonlyargs=[],
                    kw_defaults=[],
                    defaults=[],
                    posonlyargs=[],
                ),
                body=body,
                decorator_list=[],
                type_params=[],
            )
        ],
        type_ignores=[],
    )
Helper function to generate an AST for f(x).

    Args:
        body: The function body.

    Returns:
        Generated AST.
    
src/latexify/transformers/assignment_reducer_test.py