def _create_sbatch(self, ostr):
properties = dict(<EOL>sbatch_arguments=self.sbatch_args, hpcbench_command=self.hpcbench_cmd<EOL>)<EOL>try:<EOL><INDENT>self.sbatch_template.stream(**properties).dump(ostr)<EOL><DEDENT>except jinja2.exceptions.UndefinedError:<EOL><INDENT>self.logger.error('<STR_LIT>')<EOL>self.logger.error('<STR_LIT>' * <NUM_LIT:5>)<EOL>for line in self.sbatch_template_str.splitlines():<EOL><INDENT>self.logger.error(line)<EOL><DEDENT>self.logger.error('<STR_LIT>' * <NUM_LIT:5>)<EOL>self.logger.error('<STR_LIT>', properties)<EOL>raise<EOL><DEDENT>
Write sbatch template to output stream
        :param ostr: opened file to write to