code: def _contigs_dict_to_file(self, contigs, fname):
          '''Writes dictionary of contigs to file'''
          f = pyfastaq.utils.open_file_write(fname)
          for contig in sorted(contigs, key=lambda x:len(contigs[x]), reverse=True):
              print(contigs[contig], file=f)
          pyfastaq.utils.close(ff _contigs_dict_to_file(self, contigs, fname):
          '''Writes dictionary of contigs to file'''
          f = pyfastaq.utils.open_file_write(fname)
          for contig in sorted(contigs, key=lambda x:len(contigs[x]), reverse=True):
              print(contigs[contig], file=f)
          pyfastaq.utils.close(f)
docs: Writes dictionary of contigs to file