code: def test_save_tasks(self) -> None:
      tasks = [
          "task1",
          "task2",
          "task3",
      ]
      with tempfile.NamedTemporaryFile(suffix=".json") as file:
          io.save_tasks(file.name, tasks)
          with open(file.name, "r") as f:
              loaded = json.load(f)
      self.assertListEqual(tasks, loaded)
  
imports: import csv
  import json
  import tempfile
  import unittest
  from pathlib import Path
  import numpy
  from lightly.utils import io
  from tests.api_workflow.mocked_api_workflow_client import MockedApiWorkflowSetup
label_desc: Use image node_id 8 for calling the TestEmbeddingsIO obj's underlying member method code with example usage: obj.test_save_tasks() without return types