code: def test_jsonl():
      with tempfile.TemporaryDirectory() as path:
          with Path(path, "data.json").open("w") as out_file:
              for line in data:
                  out_file.write(line + "\n")
  
          assert len(FileDataset(path, freq="D")) == N
          assert len(list(FileDataset(path, freq="D"))) == N
  
imports: import gzip
  import tempfile
  from pathlib import Path
  from gluonts.dataset.common import FileDataset
  from gluonts.dataset.jsonl import JsonLinesWriter, JsonLinesFile
label_desc: Use image node_id 1 for calling a global function with example usage: test_jsonl() without return types