code: def write_json_to_file(
      filename: Text, obj: Any, **kwargs: Any
  ) -> None:
      """Write an object as a json string to a file."""
      write_to_file(
          filename, rasa.shared.utils.io.json_to_string(obj, **kwargs)
      )
  
imports: from typing import Any, Text
  import rasa.shared.utils.io
label_desc: Use image node_id 1 for calling a global function with example usage: write_json_to_file(filename, obj) without return types