code: def jsonl_generator(fname: str) -> Iterator[Dict[str, str]]:
      """Returns an iterator over a jsonl file."""
      for line in open(fname, "r"):
          line = line.strip()
          if len(line) < 3:
              d = {}
          elif line[len(line) - 1] == ",":
              d = json.loads(line[: len(line) - 1])
          else:
              d = json.loads(line)
          yield d
  
file_path: H2O/h2o_hf/helm/scripts/fact_completion/utils.py
imports: import os
  import json
  from typing import Iterator, Dict, List
  import pandas
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: jsonl_generator(fname) without return types