code: def reset_all_metadata(self):
          
          self.topics_to_brokers.clear()
          self.topic_partitions.clear()
          self.topic_errors.clear()
          self.consumer_group_to_brokers.clear()
docs: Clear all cached metadata
  
          Metadata will be re-fetched as required to satisfy requests.