code: def write_log(message: str):
      with open("log.txt", mode="a") as log:
          log.write(message)
  
imports: from typing import Union
  from fastapi import BackgroundTasks, Depends, FastAPI
  from typing_extensions import Annotated
label_desc: Use image node_id 1 for calling a global function with example usage: write_log(message) without return types