def write_memory(self, session, space, offset, data, width, extended=False):
        if width == 8:
            return self.out_8(session, space, offset, data, extended)
        elif width == 16:
            return self.out_16(session, space, offset, data, extended)
        elif width == 32:
            return self.out_32(session, space, offset, data, extended)

        raise ValueError('%s is not a valid size. Valid values are 8, 16 or 32' % width)
Generate the indices of nonzero entries of a csr_matrix S
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/VisaLibraryBase.write_memory--crossover with--dataset/ETHPy150Open QuantEcon/QuantEcon.py/quantecon/graph_tools.py/_csr_matrix_indices