Complete the code to assign a message to a specific partition.
producer.send('my_topic', value=message, partition=[1])
Complete the code to get the partition count for a topic.
partitions = [tp.partition for tp in client.partitions_for_topic('[1]')]
Fix the error in the code to assign partitions in a round-robin fashion.
partition = partitions[[1] % len(partitions)]
Fill both blanks to create a dictionary mapping partitions to messages.
partition_map = {partition: messages[1] for partition, messages in data[2]Fill both blanks to filter partitions with more than 5 messages.
filtered = {p: m for p, m in partition_map.items() if len(m) [1] 5 and p [2] 0}