code: def test_no_et_bare(tmp_path):
      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
  
      # Pytest doesn't trigger this, so let's pretend it's there
      with patch.object(BaseInterface, "_etelemetry_version_data", {}):
          # Direct function call - environment not set
          f = niu.Function(function=_check_no_et)
          res = f.run()
          assert res.outputs.out == et
  
          # Basic node - environment not set
          n = pe.Node(
              niu.Function(function=_check_no_et),
              name="n",
              base_dir=str(tmp_path),
          )
          res = n.run()
          assert res.outputs.out == et
  
          # Linear run - environment not set
          wf1 = pe.Workflow(name="wf1", base_dir=str(tmp_path))
          wf1.add_nodes(
              [pe.Node(niu.Function(function=_check_no_et), name="n")]
          )
          res = wf1.run()
          assert next(iter(res.nodes)).result.outputs.out == et
  
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 4 for calling a global function with example usage: test_no_et_bare(tmp_path) without return types