def METHOD_NAME(self, context):
    if not self._has_been_initialized:
        return
    if not context.tm.is_responsive:
        self.logger.info('Target unresponsive; not finalizing.')
        return
    self.logger.info('Finalizing job {} '.format(self))
    with indentcontext():
        with signal.wrap('WORKLOAD_FINALIZED', self, context):
            self.workload.METHOD_NAME(context)