I want to get a Kafka consumer group list by topic in kafka-python but I couldn't. How can I get consumer group list that is associated with topic in python code:
from kafka import BrokerConnection
from kafka.protocol.admin import *
import socket
list_groups_request = ListGroupsRequest_v1()
future = bc.send(list_groups_request)