code: def open_read_test_labels(filename, zip_filename=None):
      """
      Open either a text or zip file, then read the labels
      """
      if zip_filename is None:
          with open(filename, encoding="utf-8") as fin:
              test_labels = read_test_labels(fin)
              print(
                  "Read %d lines from %s" % (len(test_labels), filename)
              )
              return test_labels
  
      with zipfile.ZipFile(zip_filename) as zin:
          with zin.open(filename) as fin:
              test_labels = read_test_labels(fin)
              print(
                  "Read %d lines from %s - %s"
                  % (len(test_labels), zip_filename, filename)
              )
              return test_labels
  
file_path: stanza/stanza/utils/datasets/sentiment/process_es_tass2020.py
imports: import os
  import zipfile
  import stanza
  from stanza.models.classifiers.data import SentimentDatum
  import stanza.utils.default_paths
  from stanza.utils.datasets.sentiment.process_utils import write_dataset, write_list
label_desc: Use image node_id 3 for calling a global function with example usage: open_read_test_labels(filename, zip_filename) and returns: test_labels, test_labels