def METHOD_NAME(self, code_formatter):
    self._write_decorators(code_formatter)
    code_formatter.writeln('def {}({}):'.format(
        self._get_function_name(),
        self._get_parameter_string()))
    with code_formatter.indented():
        if not self.suite.debug_info:
            code_formatter.writeln('pass')
        self._write_parameter_values(code_formatter)
        self._write_immediate_events(code_formatter)
        self._write_deferred_events(code_formatter)
        self._write_prologue(code_formatter)
        yield
        self._write_epilogue(code_formatter)
        self._write_return(code_formatter)
    code_formatter.writeln()