code: def test_debug(tmpdir):
      tmpdir.chdir()
  
      pipe = pe.Workflow(name="pipe")
      mod1 = pe.Node(DebugTestInterface(), name="mod1")
      mod2 = pe.MapNode(
          DebugTestInterface(), iterfield=["input1"], name="mod2"
      )
  
      pipe.connect([(mod1, mod2, [("output1", "input1")])])
      pipe.base_dir = os.getcwd()
      mod1.inputs.input1 = 1
  
      run_wf = lambda: pipe.run(plugin="Debug")
      with pytest.raises(ValueError):
          run_wf()
  
      exc = None
      try:
          pipe.run(plugin="Debug", plugin_args={"callable": callme})
      except Exception as e:
          exc = e
  
      assert exc is None, "unexpected exception caught"
  
file_path: nipype/nipype/pipeline/plugins/tests/test_debug.py
imports: import os
  import nipype.interfaces.base
  import pytest
  import nipype.pipeline.engine
label_desc: Use image node_id 2 for calling a global function with example usage: test_debug(tmpdir) without return types