<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rebalance_leaders(self):
 """Re-order brokers in replicas such that, every broker is assigned as preferred leader evenly. """

        opt_leader_cnt = len(self.cluster_topology.partitions) // len(self.cluster_topology.brokers)
        # Balanced brokers transfer leadership to their under-balanced followers
        self.rebalancing_non_followers(opt_leader_cnt)