code: def test_mapnode_single(tmpdir):
      tmpdir.chdir()
  
      def _producer(num=1, deadly_num=7):
          if num == deadly_num:
              raise RuntimeError("Got the deadly num (%d)." % num)
          return num + 1
  
      pnode = pe.MapNode(
          niu.Function(function=_producer),
          name="ProducerNode",
          iterfield=["num"],
      )
      pnode.inputs.num = [7]
      wf = pe.Workflow(name="PC_Workflow")
      wf.add_nodes([pnode])
      wf.base_dir = os.path.abspath("./test_output")
      with pytest.raises(RuntimeError):
          wf.run(plugin="MultiProc")
  
imports: import os
  from copy import deepcopy
  import pytest
  from ....None import config
  from ....interfaces import utility
  from ....interfaces import base
  from ...None import engine
  from ..utils import merge_dict
  from .test_base import EngineTestInterface
  from .test_utils import UtilsTestInterface
label_desc: Use image node_id 11 for calling a global function with example usage: test_mapnode_single(tmpdir) and returns: unknown