<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _emit(self, event, document, *args, **kwargs):
 """ Inner version of emit which passes the given document as the primary argument to handler functions. """

        self.handler_registrar().apply(event, document, *args, **kwargs)