def inject(self, cs_id, time, type_, ms_id, body):
        h = chunks.Header(cs_id, time, len(body), type_, ms_id)
        if cs_id == 2 and 0 < type_ < 8 and ms_id == 0:
            self.controlMessageReceived(h, body)
        else:
            self.protocol.messageReceived(h, body)
dataset/ETHPy150Open arkadini/twimp/test/test_proto.py/TestDemuxerMixin.inject/original