Onderwijsnummer (Dutch school number).
The onderwijsnummers (school number) is very similar to the BSN (Dutch national identification number) but for students without a BSN. It uses a small variation of the BSN checksum.
>>> is_valid('101222331')
True
>>> is_valid('100252333')
False
>>> compact('1234.56.782')
'123456782'
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid onderwijsnummer. This checks the length and whether the check digit is correct and whether it starts with the right sequence.