here is where a testit function is nice:

```
def testit(m, out):
    c = doxtocsr(m)
    assert c == out
    assert csrtodok(c) == m
```

Then

```
assert testit(a, [[...],[],[],[]])
```