<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_nodes_by_hashes(self, node_hashes: List[str]) -> List[Node]: """Look up several nodes by their hashes."""

        return self.session.query(Node).filter(Node.sha512.in_(node_hashes)).all()