<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def paused_partitions(self):
 """Return current set of paused TopicPartitions."""

        return set(partition for partition in self.assignment
                   if self.is_paused(partition))