def METHOD_NAME(fn):
    if is_load_config:
        conf = configure(self.task_name)
    else:
        conf = {}
    fn = write_required(script=True)(fn)
    fn = self.task_queue.task(**conf)(fn)
    return fn