<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_public_agents_public_ip():
 """Provides a list public IPs for public agents in the cluster"""

    public_ip_list = []
    agents = get_public_agents()
    for agent in agents:
        status, public_ip = shakedown.run_command_on_agent(agent, "/opt/mesosphere/bin/detect_ip_public")
        public_ip_list.append(public_ip)

    return public_ip_list