def list_topics(self):
        """Retrieve a list of all topic names in the cluster.

        Returns:
            A list of topic name strings.
        """
        metadata = self._get_cluster_metadata(topics=None)
        obj = metadata.to_object()
        return [t['topic'] for t in obj['topics']]
Retrieve a list of all topic names in the cluster.

        Returns:
            A list of topic name strings.
        
kafka/admin/client.py