code: def write_json_lines(
      file_name: str,
      samples: List[Dict[str, Any]],
  ) -> None:
      print(f"Writing {len(samples)} samples to {file_name}")
      with open(file_name, "w") as f:
          for item in samples:
              json.dump(item, f)
              f.write("\n")
  
file_path: ParlAI/projects/roscoe/roscoe_data/restore_data.py
imports: import copy
  import json
  import os
  import random
  from typing import Any, Dict, Iterable, List, Set
  from parlai.core.params import ParlaiParser
label_desc: Use image node_id 5 for calling a global function with example usage: write_json_lines(file_name, samples) without return types