def validate_hosts_list(agent_list):
    assert agent_list, 'agent_list must be set'
    assert isinstance(agent_list, list), 'agent_list must be a list'
    assert len(agent_list) > 0, 'agent_list should have at least 1 entry'
    check_duplicates(agent_list)
    check_ipv4_addrs(agent_list)
dataset/ETHPy150Open dcos/dcos/ssh/validate.py/validate_hosts_list/original