<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query_neighbors(self, nodes: List[Node]) -> List[Edge]: """Get all edges incident to any of the given nodes."""

        return self.session.query(Edge).filter(self._edge_one_node(nodes)).all()