'Return five random, free socks5 ports.
This is here to make sure that tests in different buckets get assigned different SOCKS5 listen ports.
Also, make sure that we have no duplicates in selected socks5 ports.'

def get_socks5_ports(self):

    socks5_ports = []
    for _ in xrange(0, 5):
        (min_base_port, max_base_port) = self.get_bucket_range_port()
        selected_port = get_random_port(min_port=min_base_port, max_port=max_base_port)
        while (selected_port in self.selected_socks5_ports):
            selected_port = get_random_port(min_port=min_base_port, max_port=max_base_port)
        self.selected_socks5_ports.add(selected_port)
        socks5_ports.append(selected_port)
    return socks5_ports
