def loads(self, msg, encoding=None):
        try:
            gc.disable()  # performance optimization for msgpack
            if msgpack.version >= (0, 4, 0):
                # msgpack only supports 'encoding' starting in 0.4.0.
                # Due to this, if we don't need it, don't pass it at all so
                # that under Python 2 we can still work with older versions
                # of msgpack.
                return msgpack.loads(msg, use_list=True, encoding=encoding)
            else:
                return msgpack.loads(msg, use_list=True)
        except Exception as exc:
            log.critical('Could not deserialize msgpack message: {0}'
                         'This often happens when trying to read a file not in binary mode.'
                         'Please open an issue and include the following error: {1}'.format(msg, exc))
            raise
        finally:
            gc.enable()
Represent the element in an import item for dataTable display
dataset/ETHPy150Open saltstack/salt/salt/payload.py/Serial.loads--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3/s3import.py/S3Importer._item_element_represent