code: def write_file(data, path, mode="w", **kwargs):
      with open(path, mode=mode, **kwargs) as f:
          f.write(data)
  
file_path: jiant/jiant/utils/python/io.py
imports: import os
  import glob
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: write_file(data, path, mode) without return types