code: def choice(cls, x, p, size=1):
      return np.random.choice(len(x), size, p=p)
  
file_path: nlpaug/nlpaug/model/word_stats/word_statistics.py
imports: import numpy
label_desc: Use image node_id 6 for calling the WordStatistics obj's underlying member method code with example usage: obj.choice(cls, x, p, size) and returns: np