def _python_version():
    """
    Return python version as a tuple of integers
    """
    version = sys.version.split(" ")[0]
    version = list(map(int, list(version.split("."))))
    return tuple(version)

    Return python version as a tuple of integers
    
coremltools/test/optimize/torch/utils.py