code: def show_diedges(edges):
      """Returns a filter function that shows specific directed edges."""
      edges = {(u, v) for u, v in edges}
      return lambda u, v: (u, v) in edges
  
file_path: networkx/networkx/classes/filters.py
label_desc: Use image node_id 7 for calling a global function with example usage: show_diedges(edges) and returns: function