Verify that the checks versions are in sync with the requirements-agent-release.txt file

def agent_reqs():
    """Verify that the checks versions are in sync with the requirements-agent-release.txt file"""

    echo_info("Validating requirements-agent-release.txt...")
    agent_reqs_content = parse_agent_req_file(read_file(get_agent_release_requirements()))
    ok_checks = 0
    unreleased_checks = 0
    failed_checks = 0
    for check_name in get_valid_checks():
        if check_name not in AGENT_V5_ONLY | NOT_CHECKS:
            package_name = get_package_name(check_name)
            check_version = get_version_string(check_name)
            pinned_version = agent_reqs_content.get(package_name)
            if package_name not in agent_reqs_content:
                unreleased_checks += 1
                echo_warning('{} has not yet been released'.format(check_name))
            elif check_version != pinned_version:
                failed_checks += 1
                echo_failure("{} has version {} but is pinned to {}".format(check_name, check_version, pinned_version))
            else:
                ok_checks += 1

    if ok_checks:
        echo_success("{} correctly pinned checks".format(ok_checks))
    if unreleased_checks:
        echo_warning("{} unreleased checks".format(unreleased_checks))
    if failed_checks:
        echo_failure("{} checks out of sync".format(failed_checks))
        abort()