code: def test_annex_version_comparison():
      # see https://github.com/datalad/datalad/issues/1128
      for cmp_, base in [(-1, "6.2011"), (1, "2100.0")]:
          # there could be differing versions of a version
          #   release, snapshot, neurodebian build of a snapshot
          for v in (
              base,
              base + "-g0a34f08",
              base + "+gitg9f179ae-1~ndall+1",
          ):
              # they all must be comparable to our specification of min version
              _test_annex_version_comparison(v, cmp_)
      _test_annex_version_comparison(
          str(AnnexRepo.GIT_ANNEX_MIN_VERSION), 0
      )
  
imports: import logging
  import pytest
  from os import linesep
  from datalad import __version__
  from datalad.cmd import StdOutErrCapture, WitlessRunner
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError, MissingExternalDependency, OutdatedExternalDependency
  from datalad.tests.utils_pytest import SkipTest, assert_equal, assert_false, assert_greater, assert_greater_equal, assert_in, assert_not_in, assert_raises, assert_true, create_tree, patch, set_annex_version, swallow_logs, with_tempfile
  from ..external_versions import ExternalVersions, LooseVersion
label_desc: Use image node_id 11 for calling a global function with example usage: test_annex_version_comparison() without return types