public static MetadataSnapshot metadataSnapshotWith(int nodes) {
        return metadataSnapshotWith(nodes, new HashMap<>());
    }
Test utility function to get MetadataSnapshot of cluster with configured, and 0 partitions.
@param nodes number of nodes in the cluster.
@return a MetadataSnapshot of cluster with number of nodes in the input.
clients/src/test/java/org/apache/kafka/test/TestUtils.java