def get_complete_version(version):
    """
    Returns a tuple of the version. If version argument is non-empty,
    then checks for correctness of the tuple provided.
    """
    if not version:
        return 0, 0, 1, 'alpha', 0
    assert len(version) == 5
    assert version[3] in ('alpha', 'beta', 'rc', 'final')
    return version
