def F(agents, images_in):
    """The stacked agent map.

    Takes a list of agents and a list of images and applies each agent
    to the corresponding image.

    Args:
        agents: List of agents
        images_in: List of input images

    Returns:
        List of output images after applying the agents
    """
    images_out = [agent(img) for agent, img in zip(agents, images_in)]
    return images_out