code: def expanded_callback(self, output, inputs=[], state=[], events=[]): # pylint: disable=dangerous-default-value
          '''
          Form an expanded callback.
  
          This function registers the callback function, and sets an internal flag that mandates that all
          callbacks are passed the enhanced arguments.
          '''
          self._expanded_callbacks = True
          return self.callback(output, inputs, state, eventsf expanded_callback(self, output, inputs=[], state=[], events=[]): # pylint: disable=dangerous-default-value
          '''
          Form an expanded callback.
  
          This function registers the callback function, and sets an internal flag that mandates that all
          callbacks are passed the enhanced arguments.
          '''
          self._expanded_callbacks = True
          return self.callback(output, inputs, state, events)
docs: Form an expanded callback.
  
          This function registers the callback function, and sets an internal flag that mandates that all
          callbacks are passed the enhanced arguments.