code: def __init__(
      self,
      exs,
      ent_vocab=None,
      rel_vocab=None,
      text_vocab=None,
      ent_text_vocab=None,
      title_vocab=None,
      device=None,
  ):
      super(GWdataset, self).__init__()
      self.exs = exs
      (
          self.ent_vocab,
          self.rel_vocab,
          self.text_vocab,
          self.ent_text_vocab,
          self.title_vocab,
          self.device,
      ) = (
          ent_vocab,
          rel_vocab,
          text_vocab,
          ent_text_vocab,
          title_vocab,
          device,
      )
  
imports: import json
  import pickle
  import random
  import dgl
  import numpy
  import torch
label_desc: Use image node_id 1 to create a new GWdataset object from inherited base classes: torch.utils.data with example: obj = GWdataset(exs, ent_vocab, rel_vocab, text_vocab, ent_text_vocab, title_vocab, device)