def _write_validate(self):
if self.colorspace is None:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>self._dispatch_validation_error(msg, writing=True)<EOL><DEDENT>if self.icc_profile is None:<EOL><INDENT>if self.colorspace not in [SRGB, GREYSCALE, YCC]:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>self._dispatch_validation_error(msg, writing=True)<EOL><DEDENT><DEDENT>self._validate(writing=True)<EOL>
In addition to constructor validation steps, run validation steps
        for writing.