def METHOD_NAME(latex_text: str):
    r"""Generates an SVG representation of a LaTeX string.
    Parameters
    ----------
    latex_text : string
        A string containing the raw LaTeX "code" to render.
        For a basic usage, it may only contain an equation:
        ```
        I = \int \rho R^{2} dV
        ```
        For advanced use it may provide more packages to use:
        ```
        \usepackage{xcolor}
        \usepackage{tikz}
        \usetikzlibrary{positioning,arrows}
        \begin{document}
        \fontsize{5}{6}
        \begin{tikzpicture}[>=stealth,every node/.style={minimum size=1cm},on grid]
        [...]
        \end{tikzpicture}
        \end{document}
        ```
        In such case, the `\begin{document}` and `\end{document}`
        are mandatory.
    Returns
    -------
    string
        A string containing the SVG representation of the LaTeX input
    Exceptions
    ----------
    LatexConversionException
        In case any conversion step fails, an exception is raised.
    """
    with tempfile.TemporaryDirectory() as tmp_dir:
        with tempfile.NamedTemporaryFile(
            dir=tmp_dir, mode="w", encoding="UTF-8", suffix=".tex"
        ) as tmp_file:
            # Provide a default configuration
            # we may adapt it later to allow user to fully customize output
            tmp_file.write("\\documentclass{standalone}\n")
            tmp_file.write("\\usepackage[utf8]{inputenc}\n")
            tmp_file.write("\\usepackage{mathtools}\n")
            tmp_file.write("\\usepackage[usenames,dvipsnames]{color}\n")
            full_document_provided = False
            if "\\begin{document}" in latex_text:
                full_document_provided = True
            else:
                tmp_file.write("\\begin{document}\n")
            # Figure out the mode that we're in
            if full_document_provided:
                tmp_file.write(latex_text)
            else:
                tmp_file.write(f"$\\displaystyle\n{latex_text}\n$")
            if (
                "\\end{document}" not in latex_text
            ):  # may test on full_document_provided
                tmp_file.write("\\end{document}\n")
            # Write down the temporary file
            tmp_file.flush()
            # compile LaTeX document. A DVI file is created
            _compile_latex_file(tmp_dir, tmp_file.name)
            tmp_file_base_name = tmp_file.name.rsplit(".")[0]
            dvi_filename = f"{tmp_file_base_name}.dvi"
            svg_filename = f"{tmp_file_base_name}.svg"
            # Extract the image
            return _dvi_to_svg_base64(dvi_filename, svg_filename)