code: def check_version(module, min_ver):
      if type(module) == MissingModule:
          return pytest.mark.skip(
              reason="{} is not installed".format(module.name)
          )
      return pytest.mark.skipif(
          LooseVersion(module.__version__) < LooseVersion(min_ver),
          reason="{} version >= {} required".format(
              module.__name__, min_ver
          ),
      )
  
file_path: catboost/contrib/python/scipy/py3/scipy/special/_testutils.py
imports: import os
  import functools
  import operator
  from distutils.version import LooseVersion
  import numpy
  from numpy.testing import assert_
  import pytest
  import scipy.special
label_desc: Use image node_id 1 for calling a global function with example usage: check_version(module, min_ver) and returns: pytest, pytest