code: def create_jsonl(name, tasks, template, model):
      """Creates a JSONL scenario file with a given name, list of HumanEval tasks, template path, and model."""
  
      with open(
          os.path.join(SCENARIOS_DIR, name + ".jsonl"), "wt"
      ) as fh:
          for task in tasks:
              print(f"Converting: [{name}] {task['task_id']}")
  
              # Figure out what files we need to copy
              template_cp_list = [template]
              if len(task["file_name"].strip()) > 0:
                  template_cp_list.append(
                      [
                          os.path.join(
                              "GAIA_Files", task["file_name"].strip()
                          ),
                          os.path.join(
                              "coding", task["file_name"].strip()
                          ),
                      ]
                  )
  
              record = {
                  "id": task["task_id"],
                  "template": template_cp_list,
                  "substitutions": {
                      "scenario.py": {
                          "__MODEL__": model,
                          "__FILE_NAME__": task["file_name"],
                          "__PROMPT__": task["Question"],
                      },
                      "expected_answer.txt": {
                          "__EXPECTED_ANSWER__": task["Final answer"]
                      },
                  },
              }
  
              fh.write(json.dumps(record).strip() + "\n")
  
imports: import json
  import os
  import sys
  import shutil
label_desc: Use image node_id 1 for calling a global function with example usage: create_jsonl(name, tasks, template, model) without return types