def METHOD_NAME(self, write_path, args):
    """Render this template at the specified write_path with the specified args."""
    fpath = write_path / self.name
    print(f"...Generating {str(fpath)}")
    write_path.mkdir(parents=True, exist_ok=True)
    if "header" not in args:
        args["header"] = "Generated by ./bqetl generate events_daily"
    text = self._get_comment_char(fpath.suffix) + args["header"] + "\n\n"
    text += self.env.get_template(self.name).METHOD_NAME(**args)
    if fpath.suffix == ".sql":
        text = reformat(text, trailing_newline=True)
    (write_path / self.name).write_text(text)