code: def test_reload_task_from_dict(task_cls):
      task = task_cls()
      task_dict = asdict(task)
      reloaded = task_template_from_dict(task_dict)
      assert task == reloaded
  
imports: from copy import deepcopy
  from unittest.case import TestCase
  import pytest
  from datasets.arrow_dataset import Dataset
  from datasets.features import Audio, ClassLabel, Features, Image, Sequence, Value
  from datasets.info import DatasetInfo
  from datasets.tasks import AudioClassification, AutomaticSpeechRecognition, ImageClassification, LanguageModeling, QuestionAnsweringExtractive, Summarization, TextClassification, task_template_from_dict
  from datasets.utils.py_utils import asdict
label_desc: Use image node_id 1 for calling a global function with example usage: test_reload_task_from_dict(task_cls) without return types