code: def check_sets_all_match(a, b):
      assert len(a) == len(b)
      for s in a:
          s = {node.name for node in s}
          assert s in b
          b.pop(b.index(s))
      assert len(b) == 0
  
file_path: nni/test/algo/compression/pruning/test_channel_dependency.py
imports: import pytest
  import torch
  from nni.common.concrete_trace_utils import concrete_trace
  from nni.compression.speedup.dependency import build_channel_dependency
label_desc: Use image node_id 1 for calling a global function with example usage: check_sets_all_match(a, b) without return types