class_docstr: Basic tests on the eval_model.py example.
class_docstr_tok: ["Basic","tests","on","the","eval_model.py","example","."]
docstr: Test that we can save multiple world_logs from eval model on multiple tasks.
docstr_tok: ["Test","that","we","can","save","multiple","world_logs","from","eval","model","on","multiple","tasks","."]
code: def test_save_multiple_logs(self):
      """
      Test that we can save multiple world_logs from eval model on multiple tasks.
      """
      with testing_utils.tempdir() as tmpdir:
          log_report = os.path.join(tmpdir, "world_logs.jsonl")
          save_report = os.path.join(tmpdir, "report")
          multitask = "integration_tests,blended_skill_talk"
          opt = dict(
              task=multitask,
              model="repeat_label",
              datatype="valid",
              batchsize=97,
              num_examples=100,
              display_examples=False,
              world_logs=log_report,
              report_filename=save_report,
          )
          valid, test = testing_utils.eval_model(opt)
  
          for task in multitask.split(","):
              task_log_report = get_task_world_logs(
                  task, log_report, is_multitask=True
              )
              with PathManager.open(task_log_report) as f:
                  json_lines = f.readlines()
              assert len(json_lines) == 100
  
file_path: ParlAI/tests/test_eval_model.py
imports: import os
  from parlai.utils.io import PathManager
  import pytest
  import unittest
  import parlai.utils.testing
  from parlai.scripts.eval_model import get_task_world_logs
label_desc: Use image node_id 10 for calling the TestEvalModel obj's underlying member method code with example usage: obj.test_save_multiple_logs() without return types