def get_server_by_id(zk_hosts, server_id):
    # TODO refactor me to accept KazooClient object.
    if not isinstance(server_id, int):
        raise ValueError('server_id must be int, got: %s' % type(server_id))