def METHOD_NAME(
    scan_targets: Sequence[NetworkAddress], blocked_ips: Sequence[str]
) -> List[NetworkAddress]:
    filtered_blocked_ips = NetworkRange.filter_invalid_ranges(
        blocked_ips, "Invalid blocked IP provided:"
    )
    if len(filtered_blocked_ips) != len(blocked_ips):
        raise InvalidNetworkRangeError("Received an invalid blocked IP. Aborting just in case.")
    return _remove_ips_from_scan_targets(scan_targets, filtered_blocked_ips)