code: def test_compare_version_error():
      with pytest.raises(
          ValueError,
          match="'compare_version' received an unexpected operator <>.",
      ):
          helpers.compare_version("0.1.0", "<>", "1.1.0")
  
file_path: nilearn/nilearn/_utils/tests/test_helpers.py
imports: import warnings
  import pytest
  from nilearn._utils import helpers
label_desc: Use image node_id 6 for calling a global function with example usage: test_compare_version_error() without return types