code: def _test_external(ev, modname):
      try:
          exec("import %s" % modname, globals(), locals())
      except ImportError:
          raise SkipTest("External %s not present" % modname)
      except Exception as e:
          raise SkipTest("External %s fails to import" % modname) from e
      assert ev[modname] is not ev.UNKNOWN
      assert_greater(ev[modname], "0.0.1")
      assert_greater("1000000.0", ev[modname])
  
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 5 for calling a global function with example usage: _test_external(ev, modname) without return types