code: def write(self, fptr):
          
          self._write_validate()
          length = 15 if self.icc_profile is None else 11 + len(self.icc_profile)
          fptr.write(struct.pack('>I4s', length, b'colr'))
  
          read_buffer = struct.pack('>BBBI',
                                    self.method,
                                    self.precedence,
                                    self.approximation,
                                    self.colorspace)
          fptr.write(read_buffer)
docs: Write an Colour Specification box to file.