code: def write_to_file(filename: Text, text: Any) -> None:
      """Write a text to a file."""
      rasa.shared.utils.io.write_text_file(str(text), filename)
  
imports: from typing import Any, Text
  import rasa.shared.utils.io
label_desc: Use image node_id 2 for calling a global function with example usage: write_to_file(filename, text) without return types