code: def _get_version(version):
      # matching 1.6.1, and 1.6.1rc, 1.6.1.dev
      version_regex = r"^\d+\.\d+\.\d+"
      version = _re.search(version_regex, str(version)).group(0)
      return _StrictVersion(version)
  
file_path: coremltools/coremltools/_deps/__init__.py
imports: import platform
  import re
  import sys
  from distutils.version import StrictVersion
  from packaging import version
  from coremltools import _logger
label_desc: Use image node_id 1 for calling a global function with example usage: _get_version(version) and returns: _StrictVersion