code: def test_no_et_multiproc(tmp_path, plugin, run_without_submitting):
      from unittest.mock import patch
      from nipype.pipeline import engine as pe
      from nipype.interfaces import utility as niu
      from nipype.interfaces.base import BaseInterface
  
      et = os.getenv("NIPYPE_NO_ET") is None
  
      # Multiprocessing runs initialize new processes with NIPYPE_NO_ET
      # This does not apply to unsubmitted jobs, run by the main thread
      expectation = et if run_without_submitting else False
  
      # Pytest doesn't trigger this, so let's pretend it's there
      with patch.object(BaseInterface, "_etelemetry_version_data", {}):
          wf = pe.Workflow(name="wf2", base_dir=str(tmp_path))
          n = pe.Node(
              niu.Function(function=_check_no_et),
              run_without_submitting=run_without_submitting,
              name="n",
          )
          wf.add_nodes([n])
          res = wf.run(plugin=plugin, plugin_args={"n_procs": 1})
          assert next(iter(res.nodes)).result.outputs.out is expectation
  
file_path: nipype/nipype/tests/test_nipype.py
imports: import os
  from ..None import get_info
  from ..info import get_nipype_gitversion
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_no_et_multiproc(tmp_path, plugin, run_without_submitting) without return types