code: def rte_jsonl_to_tsv(
      file_path: Union[str, Path],
      label: bool = True,
      remove: bool = False,
      encoding="utf-8",
  ):
      import json
  
      tsv_file = os.path.splitext(file_path)[0] + ".tsv"
  
      with open(file_path, encoding=encoding) as jsonl_f, open(
          tsv_file, "w", encoding=encoding
      ) as tsv_f:
          for line in jsonl_f:
              obj = json.loads(line)
              new_line = obj["premise"] + "\t" + obj["hypothesis"]
              if label:
                  new_line += "\t" + obj["label"]
              new_line += "\n"
  
              tsv_f.write(new_line)
  
      # remove json file
      if remove:
          os.remove(file_path)
  
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 1 for calling a global function with example usage: rte_jsonl_to_tsv(file_path, label, remove, encoding) without return types