As a quality control step, we should run the [pynwb validator](https://pynwb.readthedocs.io/en/stable/validation.html) when writing an NWB file with NWBIO. Since this might be slow, we might need to make this optional with a kwarg.