static Map<TopicPartition, PartitionInfo> getTopicPartitionInfo(final Map<HostInfo, Set<TopicPartition>> partitionsByHost) {
        final Map<TopicPartition, PartitionInfo> topicToPartitionInfo = new HashMap<>();
        for (final Set<TopicPartition> value : partitionsByHost.values()) {
            for (final TopicPartition topicPartition : value) {
                topicToPartitionInfo.put(
                    topicPartition,
                    new PartitionInfo(
                        topicPartition.topic(),
                        topicPartition.partition(),
                        null,
                        new Node[0],
                        new Node[0]
                    )
                );
            }
        }
        return topicToPartitionInfo;
    }
Verify that this client's host info was included in the map returned in the assignment, and trigger a
rebalance if not. This may be necessary when using static membership, as a rejoining client will be handed
back its original assignment to avoid an unnecessary rebalance. If the client's endpoint has changed, we need
to force a rebalance for the other members in the group to get the updated host info for this client.

@param groupHostInfo the HostInfo of all clients in the group
@return false if the current host info does not match that in the group assignment
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java