def METHOD_NAME(working_dir: str, input_file_name: str):
    """Compile the LaTeX file by running a `latex` command line.
    Parameters
    ----------
    working_dir : string
        The directory where generated files will be created.
    input_file_name: string
        The LaTeX input file (ie the `.tex` file)
    Returns
    -------
    None
        This function generates files and returns nothing.
    """
    cmd = [
        "latex",
        "-interaction=batchmode",
        "-halt-on-error",
        f"-output-directory={working_dir}",
        input_file_name,
    ]
    status = call(  # nosec
        cmd,
        stdout=DEVNULL,
        stderr=DEVNULL,
        timeout=LATEX_CMD_TIMEOUT,
    )
    tmp_file_base_name = input_file_name.rsplit(".")[0]
    if status:  # This means we failed
        logger.error("Couldn't compile LaTeX document")
        with open(f"{tmp_file_base_name}.log", "r", encoding="utf-8") as log_file:
            logger.info("LaTeX conversion failure log: %s", log_file.read())
        with open(f"{tmp_file_base_name}.tex", "r", encoding="utf-8") as tex_file:
            logger.info("LaTeX conversion failure input file: %s", tex_file.read())
        raise LatexConversionException("Couldn't compile LaTeX document")