def METHOD_NAME(agent_id, agent_name, agent_ip, status, host_manager, hosts_list):
    # Check the agent has the expected status (never_connected, pending, active, disconnected)
    expected_status = f"{agent_id}  {agent_name}  {agent_ip}  {status}"
    for host in hosts_list:
        expected_status = f"{agent_id}  {agent_name}  {agent_ip}  {status}"
        data = get_agents_in_cluster(host, host_manager)
        assert expected_status in data, f" Did not recieve expected agent status {expected_status} in data {str(data)}"