code: def __init__(
      self, graph, walk_length, num_walks, window_size, num_negative
  ):
      self.graph = graph
      self.walk_length = walk_length
      self.num_walks = num_walks
      self.window_size = window_size
      self.num_negative = num_negative
      self.node_weights = self.compute_node_sample_weight()
  
file_path: dgl/examples/pytorch/eges/sampler.py
imports: import dgl
  import numpy
  import torch
label_desc: Use image node_id 1 to create a new Sampler object  with example: obj = Sampler(graph, walk_length, num_walks, window_size, num_negative)