<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_own_module(self, path):
 """ This is provided so the calling process can arrange for processing to be stopped and a LegionReset exception raised when any part of the program's own module tree changes. """

        log = self._params.get('log', self._discard)
        self._name = path
        self.module_add(event_target(self, 'legion_reset', key=path, log=log), path)