def request(self, method, *args, **kwargs):
        async = kwargs.pop('async', False)
        if async:
            self._async_session.notify(method, args)
            return

        if kwargs:
            raise ValueError("request got unsupported keyword argument(s): {0}"
                             .format(', '.join(kwargs.keys())))

        if self._is_running:
            v = self._yielding_request(method, args)
        else:
            v = self._blocking_request(method, args)
        if not v:
            # EOF
            raise IOError('EOF')
        err, rv = v
        if err:
            info("'Received error: %s", err)
            raise self.error_wrapper(err)
        return rv
Change the voxel type of the image
dataset/ETHPy150Open neovim/python-client/neovim/msgpack_rpc/session.py/Session.request--crossover with--dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/msct_image.py/Image.changeType