code: def __init__(self, period):
      assert period > 0
      super(SMAEventWindow, self).__init__(period)
      self.__value = None
  
imports: import numpy
  from pyalgotrade import technical
label_desc: Use image node_id 1 to create a new SMAEventWindow object from inherited base classes: technical with example: obj = SMAEventWindow(period)