def verify_variant_type(variants, variant_type, pos, length):
    """"Helper function for checking a specific variant type.

    Args:
        variants: List of variants to look through.
        variant_type: The type of variant to verify.
        pos: Position of the variant.
        length: Size of the variant.

    Returns:
        Boolean indicating whether variant was verified.
    """
    for variant in variants:
        # Check variant against following gauntlet.
        if variant['type'] != variant_type:
            continue # Fail, incorrect type.
        if abs(abs(variant['pos']) - pos) >= 100:
            continue # Fail, incorrect position.
        if (length != -1 and
                abs(abs(variant['length']) - length) >= 100):
            continue # Fail, incorrect length.
        # Success, variant made it through gauntlet.
        return True

    # If we got here, no matches were found.
    return False