code: def jsonl_file(tmp_path):
      # Create a temporary file path
      file_path = tmp_path / "data.jsonl"
  
      # Generate data to write to the JSONL file
      data = [
          {"name": "John", "age": 30},
          {"name": "Jane", "age": 25},
          {"name": "Bob", "age": 35},
      ]
  
      # Write data to the JSONL file
      with open(file_path, mode="w") as file:
          for item in data:
              json.dump(item, file)
              file.write("\n")
  
      # Provide the file path to the test function
      yield str(file_path)
  
      # Optional: Clean up the temporary file after the test
      file_path.unlink()
  
file_path: NeMo/tests/collections/nlp/test_mem_map_dataset.py
imports: import csv
  import json
  import os
  import pytest
  from nemo.collections.nlp.data.language_modeling import text_memmap_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: jsonl_file(tmp_path) without return types