code: def __init__(self, sampler, g, ntype, textset):
      self.sampler = sampler
      self.ntype = ntype
      self.g = g
      self.textset = textset
  
imports: import dgl
  import numpy
  import torch
  from torch.utils.data import DataLoader, IterableDataset
  from torchtext.data.functional import numericalize_tokens_from_iterator
label_desc: Use image node_id 1 to create a new PinSAGECollator object from inherited base classes: object with example: obj = PinSAGECollator(sampler, g, ntype, textset)