code: def write_hello(filename: str):
      os.makedirs(os.path.dirname(filename), exist_ok=True)
      with open(filename, "w") as f:
          f.write("hello\n")
  
file_path: hail/hail/python/test/hailtop/hailctl/batch/test_submit.py
imports: import os
  import pytest
  import tempfile
  from typer.testing import CliRunner
  from hailtop.hailctl.batch import cli
label_desc: Use image node_id 3 for calling a global function with example usage: write_hello(filename) without return types