code: def __init__(self, g, sample_size):
      self.sample_size = sample_size
      self.eids = np.arange(g.num_edges())
  
imports: import dgl
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  import tqdm
  from dgl.data.knowledge_graph import FB15k237Dataset
  from dgl.dataloading import GraphDataLoader
  from dgl.nn.pytorch import RelGraphConv
label_desc: Use image node_id 1 to create a new GlobalUniform object  with example: obj = GlobalUniform(g, sample_size)