code: def register_tasks(task_cls: Union[Type, List[Type]]):
      """
      Task classes are already added to registry during declaration, pass them
      as parameters here just to make sure they're imported
      """
      vars(PyTextConfig)["__annotations__"][
          "task"
      ].__args__ = Registry.configs(ComponentType.TASK)
  
imports: import collections
  import enum
  from typing import Any, Dict, List, Tuple, Type, Union
  import torch
  from pytext.utils.usage import log_class_usage
  from .pytext_config import ConfigBase, PyTextConfig
label_desc: Use image node_id 1 for calling a global function with example usage: register_tasks(task_cls) without return types