code: def sample(self):
      return torch.from_numpy(
          np.random.choice(self.eids, self.sample_size)
      )
  
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 2 for calling the GlobalUniform obj's underlying member method code with example usage: obj.sample() and returns: torch