docstr: Using node degree as sample weight
docstr_tok: ["Using","node","degree","as","sample","weight"]
code: def compute_node_sample_weight(self):
      """
      Using node degree as sample weight
      """
      return self.graph.in_degrees().float()
  
file_path: dgl/examples/pytorch/eges/sampler.py
imports: import dgl
  import numpy
  import torch
label_desc: Use image node_id 5 for calling the Sampler obj's underlying member method code with example usage: obj.compute_node_sample_weight() and returns: self