code: def _write_init_script(self, init_script):
      init_filename = os.path.join(self.working_dir, "init.sh")
      with open(init_filename, "w") as f:
          f.write(init_script)
      return init_filename
  
imports: import json
  import logging
  import os
  import re
  import subprocess
  import sys
  from guild import remote
  from guild import remote_util
  from guild import util
  from guild import var
  from .None import ssh
  from .None import ssh_util
label_desc: Use image node_id 22 for calling the EC2Remote obj's underlying member method code with example usage: obj._write_init_script(init_script) and returns: init_filename