def METHOD_NAME(self):
    """
    Does LatexExporter properly format input and output prompts in color?
    Uses an in memory latex template to load style_ipython as the cell style.
    """
    my_loader_tplx = DictLoader(
        {
            "my_template": r"""
        ((* extends 'style_ipython.tex.j2' *))
        ((* block docclass *))
        \documentclass[11pt]{article}
        ((* endblock docclass *))
        """
        }
    )
    class MyExporter(LatexExporter):
        template_file = "my_template"
    (output, resources) = MyExporter(extra_loaders=[my_loader_tplx]).from_filename(
        self._get_notebook(nb_name="prompt_numbers.ipynb")
    )
    in_regex = r"In \[\{\\color\{incolor\}(.*)\}\]:"
    out_regex = r"Out\[\{\\color\{outcolor\}(.*)\}\]:"
    ins = ["2", "10", " ", " ", "0"]
    outs = ["10"]
    assert re.findall(in_regex, output) == ins
    assert re.findall(out_regex, output) == outs