code: def save_scores_list(scores, file_path):
      """
      Save the list of topics-scores into a file
  
      Args:
          scores: A list of topics (groups) with scores
          file_path: The output file path
      """
      logger.info("saving np extraction results to: %s", file_path)
      with open(
          file_path, "wt", encoding="utf-8", newline=""
      ) as csv_file:
          writer = csv.writer(csv_file, delimiter=",")
          ctr = 0
          for topics, imp in scores:
              try:
                  row = (topics, str(imp))
                  writer.writerow(row)
                  ctr += 1
              except Exception as e:
                  logger.error(
                      "Error while writing scores to file. iteration #: %s. Error: %s",
                      str(ctr),
                      str(e),
                  )
  
imports: import argparse
  import csv
  import logging
  import operator
  import os
  import sys
  from os import path
  from pathlib import Path
  from shutil import copyfile
  import numpy
  import pandas
  from sklearn.manifold import TSNE
  from nlp_architect import LIBRARY_OUT
  from nlp_architect.utils.embedding import FasttextEmbeddingsModel
  from nlp_architect.utils.io import check_size, validate_existing_filepath
  from nlp_architect.utils.text import simple_normalizer
label_desc: Use image node_id 5 for calling a global function with example usage: save_scores_list(scores, file_path) without return types