code: def write_whole_file(name, mode, data):
      f = open(name, mode)
      try:
          f.write(data)
      finally:
          f.close()
  
imports: import os
  import sys
  import shlex
  import glob
  import re
  import time
  import zipfile
  import tarfile
  from distutils.command import build_ext, build, sdist
label_desc: Use image node_id 3 for calling a global function with example usage: write_whole_file(name, mode, data) without return types