class_docstr: Task labels are `DataAttribute`s that are automatically appended to the
  mini-batch.
class_docstr_tok: ["Task","labels","are","`","DataAttribute","`","s","that","are","automatically","appended","to","the","mini-batch","."]
code: def __init__(self, task_labels):
      super().__init__(
          task_labels, "targets_task_labels", use_in_getitem=True
      )
  
imports: from typing import Dict, List, Optional, Sequence, Set, TypeVar, Union, overload
  import torch
  from .dataset_definitions import IDataset
  from .flat_data import ConstantSequence, FlatData
label_desc: Use image node_id 1 to create a new TaskLabels object from inherited base classes: DataAttribute with example: obj = TaskLabels(task_labels)