def match(self, cls): 
        return isinstance(self, cls)
Checks whether this message is an instance of the given message class *cls*.
dataset/ETHPy150Open concurrence/concurrence/lib/concurrence/core.py/Message.match