code: def __init__(
      self, dataset, indices, num_classes=None, target_transform=None
  ):
      if num_classes is None:
          num_classes = dataset.num_classes
      Task.__init__(self, dataset.index, num_classes)
      Subset.__init__(self, dataset, indices)
      self.dataset.target_transform_append(target_transform)
  
imports: from torch.utils.data import ConcatDataset, Subset
  from torch.utils.data import Dataset
  from torchvision.transforms import Compose
label_desc: Use image node_id 1 to create a new SubsetTask object from inherited base classes: Task, Subset with example: obj = SubsetTask(dataset, indices, num_classes, target_transform)