<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self):
 """Return FASTQ formatted string Returns: str: FASTQ formatted string containing entire FASTQ entry """


        if self.description:
            return '@{0} {1}{4}{2}{4}+{4}{3}{4}'.format(self.id,
                                                        self.description,
                                                        self.sequence,
                                                        self.quality,
                                                        os.linesep)
        else:
            return '@{0}{3}{1}{3}+{3}{2}{3}'.format(self.id,
                                                    self.sequence,
                                                    self.quality,
                                                    os.linesep)