def writelines(self, sequence):
        if self.mode not in WRITE_MODES:
            raise IOError('Bad file descriptor')

        if getattr(sequence, '__iter__', None) is None:
            raise TypeError('writelines() requires an iterable argument')

        for line in sequence:
            self.write(line)
writelines(sequence_of_strings) -> None.
dataset/ETHPy150Open mockfs/mockfs/mockfs/storage.py/file.writelines