def _to_enos_networks(networks):
    """Transform the networks returned by deploy5k.

    Args:
        networks (dict): networks returned by
            :py:func:`enoslib.infra.provider.Provider.init`
    """
    nets = []
    for roles, network in networks:
        nets.append(network.to_enos(roles))
    logger.debug(nets)
    return nets