class_docstr: AliasSampleTest
      
docstr: test_result
          
code: def test_resut(self):
      """test_result"""
      size = [450000]
      num = 10
      probs = np.arange(1, num).astype(np.float64)
      probs /= np.sum(probs)
      alias, events = alias_sample_build_table(probs)
      ret = alias_sample(size, alias, events)
      cnt = Counter(ret)
      sort_cnt_keys = [
          x[1] for x in sorted(zip(cnt.values(), cnt.keys()))
      ]
      self.assertEqual(sort_cnt_keys, np.arange(0, num - 1).tolist())
  
file_path: PGL/legacy/pgl/tests/deepwalk/test_alias_sample.py
imports: import argparse
  import time
  import unittest
  from collections import Counter
  import numpy
  from pgl.graph_kernel import alias_sample_build_table
  from pgl.sample import alias_sample
label_desc: Use image node_id 3 for calling the AliasSampleTest obj's underlying member method code with example usage: obj.test_resut() without return types