code: def read_jsonl(filename):
      result = []
      with open(filename, "rb") as f:
          for l in f:
              result.append(json.loads(l))
  
      # add a test_id
      test_case_map = {
          t: i
          for i, t in enumerate(set([str(r["input"]) for r in result]))
      }
      print(filename, len(test_case_map))
      for r in result:
          r["test_id"] = test_case_map[str(r["input"])]
      return result
  
imports: import argparse
  import contextlib
  import glob
  import json
  import os
  import random
  import signal
  from time import time
  import numpy
  import platform
  import faulthandler
  import psutil
label_desc: Use image node_id 7 for calling a global function with example usage: read_jsonl(filename) and returns: result