def METHOD_NAME(input_file, output_file, template):
    """Create a translated IDML using an IDML template and a PO file."""
    # Now proceed with the conversion.
    template_zip = ZipFile(template, "r")
    translatable_files = [
        filename
        for filename in template_zip.namelist()
        if filename.startswith("Stories/")
    ]
    po_data = input_file.read()
    dom_trees = translate_idml(template, BytesIO(po_data), translatable_files)
    write_idml(template_zip, output_file, dom_trees)
    output_file.close()
    return True