def is_version_compatible(version: dict, expected_version: tuple) -> bool:
    """

    Args:
        version: Dictionary containing version info.
                    Should have following fields -> 'major', 'minor', 'patch'
        expected_version: Tuple of 3 elements for ('major', 'minor', 'patch')

    Returns:
        Whether the version is the same as the expected version
    """
    # return bool(version['major'] == float(UFF.__version_info__[0]) and
    #             version['minor'] == float(uff.__version_info__[1]) and
    #             version['patch'] == float(uff.__version_info__[2]))
    major, minor, patch = expected_version
    return bool(version['major'] == major
                and version['minor'] == minor
                and version['patch'] == patch)