def _read_returned_msg(self, method_frame):
        header_frame, body = self._reap_msg_frames(method_frame)

        return_info = {
            'channel': self.channel,
            'reply_code': method_frame.args.read_short(),
            'reply_text': method_frame.args.read_shortstr(),
            'exchange': method_frame.args.read_shortstr(),
            'routing_key': method_frame.args.read_shortstr()
        }

        return Message(body=body, return_info=return_info,
                       **header_frame.properties)
Support method to read a returned (basic.return) Message from the
dataset/ETHPy150Open agoragames/haigha/haigha/classes/basic_class.py/BasicClass._read_returned_msg