def register(listener):
    _validate_event_listeners('listener', [listener])
    _LISTENERS.command_listeners.append(listener)
Register a global event listener.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/monitoring.py/register