def METHOD_NAME(self):
    ip_port = [
        ("127.0.0.1", 9200),
        ("127.0.0.1", 9200),
        ("127.0.0.1", 9200),
        ("10.16.23.5", 9200),
        ("11.22.33.44", 9200),
        ("11.22.33.44", 9200),
    ]
    self.assertDictEqual(
        {
            ("127.0.0.1", 9200): [0, 1, 2],
            ("10.16.23.5", 9200): [3],
            ("11.22.33.44", 9200): [4, 5],
        }, builder.nodes_by_host(ip_port)
    )