code: def testGetOutOfBounds(self):
      args = [50]
      self.assertRaises(IndexError, self.patternMachine.get, *args)
  
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 3 for calling the PatternMachineTest obj's underlying member method code with example usage: obj.testGetOutOfBounds() without return types