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