code: def save_tasks(
      path: str,
      tasks: List[str],
  ) -> None:
      """Saves a list of prediction task names in the right format.
  
      Args:
          path:
              Where to store the task names.
          tasks:
              List of task names.
  
      """
      with open(path, "w") as f:
          json.dump(tasks, f)
  
file_path: lightly/lightly/utils/io.py
imports: import csv
  import json
  import re
  from itertools import compress
  from typing import Any, Dict, List, Tuple, Union
  import numpy
  from numpy.typing import NDArray
label_desc: Use image node_id 7 for calling a global function with example usage: save_tasks(path, tasks) without return types