class_docstr: Implementation of Dataset class
  
  This is a simple implementation of loading and processing dataset for metapath2vec model.
  
  Args:
      config: dict, some configure parameters.
class_docstr_tok: ["Implementation","of","Dataset","class","This","is","a","simple","implementation","of","loading","and","processing","dataset","for","metapath2vec","model",".","Args",":","config",":","dict",",","some","configure","parameters","."]
docstr: Get negative samples from negative samling table.
          
docstr_tok: ["Get","negative","samples","from","negative","samling","table","."]
code: def getNegatives(self, size):
      """Get negative samples from negative samling table."""
      return np.random.choice(self.negatives, size)
  
file_path: PGL/legacy/examples/metapath2vec/Dataset.py
imports: import sys
  import os
  import glob
  import numpy
  import tqdm
  import time
  import logging
  import random
  from pgl import heter_graph
  import pickle
label_desc: Use image node_id 5 for calling the Dataset obj's underlying member method code with example usage: obj.getNegatives(size) and returns: np