<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_edges_by_pubmed_identifiers(self, pubmed_identifiers: List[str]) -> List[Edge]: """Get all edges annotated to the documents identified by the given PubMed identifiers."""

        fi = and_(Citation.type == CITATION_TYPE_PUBMED, Citation.reference.in_(pubmed_identifiers))
        return self.session.query(Edge).join(Evidence).join(Citation).filter(fi).all()