human
I wrote the below code

    def SetListener(self, listener):
        if (listener is None):
            self._listener = message_listener_mod.NullMessageListener()
        else:
            self._listener = listener
    cls._SetListener = SetListener

What's a good function header?
assistant
#Here's a good function header.

def _AddSetListenerMethod(cls):