import ipaddress


def get_networks(cidrs):
    """Convert a comma-separated list of CIDRs to a list of networks."""
    if not cidrs:
        return []
    return [ipaddress.ip_interface(cidr).network for cidr in cidrs.split(",")]