class_docstr: :class:`KGSampler` is used to sample negative entities in a knowledge graph.
  
  Args:
      dataset (Dataset): The knowledge graph dataset, which contains triplets in a knowledge graph.
      distribution (str, optional): Distribution of the negative entities. Defaults to 'uniform'.
class_docstr_tok: [":","class",":","`","KGSampler","`","is","used","to","sample","negative","entities","in","a","knowledge","graph",".","Args",":","dataset","(","Dataset",")",":","The","knowledge","graph","dataset",",","which","contains","triplets","in","a","knowledge","graph",".","distribution","(","str",",","optional",")",":","Distribution","of","the","negative","entities",".","Defaults","to","'uniform","'","."]
code: def _get_candidates_list(self):
      return list(self.hid_list) + list(self.tid_list)
  
imports: import copy
  import numpy
  from numpy.random import sample
  import torch
  from collections import Counter
label_desc: Use image node_id 3 for calling the KGSampler obj's underlying member method code with example usage: obj._get_candidates_list() and returns: unknown