code: def write_out_script(output_file, script):
      dir_path = os.path.dirname(output_file)
      os.makedirs(dir_path, exist_ok=True)
      with open(output_file, "w") as f:
          f.write(script)
  
file_path: deepspeed-mii/mii/aml_related/utils.py
imports: import os
  import subprocess
  import yaml
  import mii
label_desc: Use image node_id 4 for calling a global function with example usage: write_out_script(output_file, script) without return types