def marshal(self, mime, value, **kwargs):
        codec = self.codec(mime)
        if not codec:
            raise Exception('Could not find codec for %s, value: %s, args: %s' % (mime, value, kwargs))
        return codec.marshal(value, **kwargs)
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/primitives/codec.py/MimeCodec.marshal/original