code: def hide_edges(edges):
      """Returns a filter function that hides specific undirected edges."""
      alledges = set(edges) | {(v, u) for (u, v) in edges}
      return lambda u, v: (u, v) not in alledges
  
file_path: networkx/networkx/classes/filters.py
label_desc: Use image node_id 4 for calling a global function with example usage: hide_edges(edges) and returns: function