code: def get_tasks(benchmark, task_names):
      task_names = task_names.split(",")
      ALL_TASKS = GLUE_TASKS if benchmark == "glue" else SUPERGLUE_TASKS
      if "all" in task_names:
          tasks = ALL_TASKS
      else:
          tasks = []
          for task_name in task_names:
              if task_name != "diagnostic":
                  assert task_name in ALL_TASKS, (
                      "Task %s not found!" % task_name
                  )
              tasks.append(task_name)
          if "RTE" in tasks and "diagnostic" not in tasks:
              tasks.append("diagnostic")
      has_diagnostic = any(["diagnostic" in task for task in tasks])
      if has_diagnostic:
          tasks = [ele for ele in tasks if "diagnostic" not in ele]
          tasks.append("diagnostic")
      return tasks
  
imports: import os
  import shutil
  import argparse
  import zipfile
  import json
  import pandas
  import pyarrow
  import pyarrow.json
  from gluonnlp.utils.misc import download, load_checksum_stats
  from gluonnlp.base import get_data_home_dir
  from gluonnlp.data.tokenizers import WhitespaceTokenizer
label_desc: Use image node_id 25 for calling a global function with example usage: get_tasks(benchmark, task_names) and returns: tasks