code: def testWList(self):
      w = [4, 7, 11]
      patternMachine = PatternMachine(100, w, num=50)
      widths = dict((el, 0) for el in w)
  
      for i in range(50):
          pattern = patternMachine.get(i)
          width = len(pattern)
          self.assertTrue(width in w)
          widths[len(pattern)] += 1
  
      for i in w:
          self.assertTrue(widths[i] > 0)
  
file_path: nupic-legacy/tests/unit/nupic/data/generators/pattern_machine_test.py
imports: import unittest
  from nupic.data.generators.pattern_machine import PatternMachine, ConsecutivePatternMachine
label_desc: Use image node_id 8 for calling the PatternMachineTest obj's underlying member method code with example usage: obj.testWList() without return types