def version_match(mi_version, ms_version):
    """Judge if the version of Mindinsight and Mindspore is matched"""
    mi_major, mi_minor = mi_version.split('.')[:2]
    ms_major, ms_minor = ms_version.split('.')[:2]
    return mi_major == ms_major and mi_minor == ms_minor