code: def tsv_from_eval_dataset(self, folder_path: Union[str, Path]):
      folder_path = Path(folder_path)
      glue_eval_tsv = (
          "MNLI-m.tsv" if self.evaluate_on_matched else "MNLI-mm.tsv"
      )
      folder_path = folder_path / glue_eval_tsv
  
      with open(folder_path, mode="w") as tsv_file:
          tsv_file.write("index\tprediction\n")
          datapoint: DataPair
          for index, datapoint in enumerate(
              _iter_dataset(self.eval_dataset)
          ):
              label = datapoint.get_labels("textual_entailment")[
                  0
              ].value
              tsv_file.write(str(index) + "\t" + label + "\n")
  
imports: import logging
  import os
  from pathlib import Path
  from typing import List, Optional, Union
  import flair
  from flair.data import Corpus, DataPair, FlairDataset, Sentence, TextPair, _iter_dataset
  from flair.datasets.base import find_train_dev_test_files
  from flair.file_utils import cached_path, unpack_file, unzip_file
label_desc: Use image node_id 2 for calling the GLUE_MNLI obj's underlying member method code with example usage: obj.tsv_from_eval_dataset(folder_path) without return types