code: def test_channel_dependency(mod, deps):
      model = mod()
      dummy_input = (torch.randn(1, 3, 224, 224),)
      traced = concrete_trace(model, dummy_input)
      dependency = build_channel_dependency(traced)
      check_sets_all_match(dependency, deps)
  
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 2 for calling a global function with example usage: test_channel_dependency(mod, deps) without return types