def check_required_networks(networks, required_networks):
    """Verifies required networks are present."""
    if required_networks:
        msg = 'Networks (%s) required but missing'
        msg_networks = ','.join(required_networks)
        if required_networks.intersection(networks) != required_networks:
            return msg % msg_networks
    return ''
