code: def pending_assignment(self):
          
          return {
              self.partitions[pid].name: [
                  self.brokers[bid].id for bid in self.replicas[pid]
              ]
              for pid in set(self.pending_partitions)
          }
docs: Return the pending partition assignment that this state represents.