def check_version(stdout):
    """Check version of Ensembl-VEP.

    Example of the first part of an output from the command `vep --help`:
    #----------------------------------#
    # ENSEMBL VARIANT EFFECT PREDICTOR #
    #----------------------------------#

    Versions:
    ensembl              : 104.1af1dce
    ensembl-funcgen      : 104.59ae779
    ensembl-io           : 104.1d3bb6e
    ensembl-variation    : 104.6154f8b
    ensembl-vep          : 104.3

    Help: dev@ensembl.org , helpdesk@ensembl.org
    Twitter: @ensembl
    """
    vep_version = int(
        float(
            next(
                (line for line in stdout.split("\n") if "ensembl-vep" in line)
            ).split()[2]
        )
    )

    return vep_version