pub fn write_def_levels( writer: &mut Vec<u8>, is_optional: bool, validity: Option<&Bitmap>, len: usize, version: Version, ) -> PolarsResult<()>
writes the def levels to a Vec<u8> and returns it.
Vec<u8>