def setup(self, density, format):
        n = 1000
        if format == 'dok' and n * density >= 500:
            raise NotImplementedError()

        self.X = sparse.rand(n, n, format=format, density=density)
dataset/ETHPy150Open scipy/scipy/benchmarks/benchmarks/sparse.py/Diagonal.setup/original