code: def test_importerror(creating_graphs, tmpdir):
      tmpdir.chdir()
      graphlist = creating_graphs
      group1 = graphlist[:3]
      group2 = graphlist[3:]
  
      nbs = NetworkBasedStatistic()
      nbs.inputs.in_group1 = group1
      nbs.inputs.in_group2 = group2
      nbs.inputs.edge_key = "weight"
  
      with pytest.raises(ImportError) as e:
          nbs.run()
  
file_path: nipype/nipype/interfaces/cmtk/tests/test_nbs.py
imports: from ..nbs import NetworkBasedStatistic
  from ....utils.misc import package_check
  import numpy
  import networkx
  import pickle
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_importerror(creating_graphs, tmpdir) without return types