Open
Description
We've discussed the need to check that values in dataset arrays conform to certain invariants before or after running methods on them (e.g. https://github.com/pystatgen/sgkit/pull/36#discussion_r452950827). These might be non-trivial in performance time (i.e. not just checking metadata), so would be opt-in by users.
This issue is to add such a function. @eric-czech do you have a suggestion for a function we could start with here?