class_docstr: This class is used to create of a subset of a dataset.
  
  Args:
      subset (:class:`torch.utils.data.Dataset`): The given dataset subset.
      transform (function, optional): A transformation applied on each
          sample of the dataset before it will be used. Default is None.
code: def __init__(self, subset, transform=None):
      self.subset = subset
      self.transform = transform
  
imports: import random
  import torch
  import torch.nn.functional
  from torch.utils.data import Dataset
  from torch_geometric.utils import degree
label_desc: Use image node_id 1 to create a new Subset object from inherited base classes: Dataset with example: obj = Subset(subset, transform)