<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _add_edge_function_filter(query, edge_node_id, node_type):
 """See usage in self.query_edges."""

        return query.join(Node, edge_node_id == Node.id).filter(Node.type == node_type)