code: def _check_no_et():
      import os
      from unittest.mock import patch
  
      et = os.getenv("NIPYPE_NO_ET") is None
  
      with patch.dict("os.environ", {"NIPYPE_NO_ET": "1"}):
          from nipype.interfaces.base import BaseInterface
  
          ver_data = BaseInterface._etelemetry_version_data
  
      if et and ver_data is None:
          raise ValueError(
              "etelemetry enabled and version data missing - double hits likely"
          )
  
      return 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 3 for calling a global function with example usage: _check_no_et() and returns: et