code: def test_strip_dev(version, want, have_unstripped, monkeypatch):
      """Test that stripping dev works."""
      monkeypatch.setattr(
          mne.utils.check,
          "import_module",
          lambda x: Bunch(__version__=version),
      )
      got_have_unstripped, same_version = check_version(
          version, want, strip=False, return_version=True
      )
      assert same_version == version
      assert got_have_unstripped is have_unstripped
      have, simpler_version = check_version(
          "foo", want, return_version=True
      )  # strip=True is the default
      assert have, (simpler_version, version)
  
      def looks_stable(version):
          try:
              [int(x) for x in version.split(".")]
          except ValueError:
              return False
          else:
              return True
  
      if looks_stable(version):
          assert "dev" not in version
          assert "rc" not in version
          assert simpler_version == version
      else:
          assert simpler_version != version
      assert "dev" not in simpler_version
      assert "rc" not in simpler_version
      assert not simpler_version.endswith(".")
      assert looks_stable(simpler_version)
  
imports: import os
  import sys
  from pathlib import Path
  import numpy
  import pytest
  import mne
  from mne import pick_channels_cov, read_vectorview_selection
  from mne._fiff.pick import _picks_to_idx
  from mne.datasets import testing
  from mne.utils import Bunch, _check_ch_locs, _check_fname, _check_info_inv, _check_option, _check_range, _check_sphere, _check_subject, _on_missing, _path_like, _safe_input, _suggest, _validate_type, catch_logging, check_fname, check_random_state, check_version
label_desc: Use image node_id 14 for calling a global function with example usage: test_strip_dev(version, want, have_unstripped, monkeypatch) and returns: True, False