code: def _matches_to_sets(matches):
      """
      Helper function to facilitate comparing collections of dictionaries in
      which order does not matter.
      """
      return {frozenset(m.items()) for m in matches}
  
file_path: networkx/networkx/algorithms/isomorphism/tests/test_ismags.py
imports: import pytest
  import networkx
  from networkx.algorithms import isomorphism
label_desc: Use image node_id 1 for calling a global function with example usage: _matches_to_sets(matches) and returns: unknown