<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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