def METHOD_NAME(
    self,
    prefix: str,
    open_paren: str,
    exprs: Iterable[ExprAST | FunctionAST],
    close_paren: str,
    block: Callable[[Dumper, ExprAST | FunctionAST], None],
):
    self.append(prefix, open_paren)
    child = self.child()
    for expr in exprs:
        block(child, expr)
    self.append("", close_paren)