code: def read_dataset(
      dataset_name, preprocessed_json_data_parent_folder, debug=False
  ):
      file_name = "{}.jsonl".format(dataset_name)
      txt_file_path = os.path.join(
          preprocessed_json_data_parent_folder, file_name
      )
  
      samples = []
  
      with io.open(txt_file_path, mode="r", encoding="utf-8") as file:
          for line in file:
              samples.append(json.loads(line.strip()))
              if debug and len(samples) > 200:
                  break
  
      return samples
  
imports: import os
  import io
  import sys
  import json
  import torch
  import logging
  import numpy
  from collections import OrderedDict
  from pytorch_transformers.modeling_utils import CONFIG_NAME, WEIGHTS_NAME
  from tqdm import tqdm
  from blink.candidate_ranking.bert_reranking import BertReranker
  from blink.biencoder.biencoder import BiEncoderRanker
label_desc: Use image node_id 1 for calling a global function with example usage: read_dataset(dataset_name, preprocessed_json_data_parent_folder, debug) and returns: samples