def METHOD_NAME(self, n: ast.node, list: list[ast.node], redirects: list[ast.node]) -> ast.node:
    newlist = []
    newredirects = []
    for ls in list:
        newlist.append(self.visit(ls))
    for rd in redirects:
        newredirects.append(self.visit(rd))
    return ast.node(
        kind="compound", list=newlist, redirects=newredirects, pos=n.pos
    )