def METHOD_NAME(*args, **kwargs):
    __tracebackhide__ = True
    img = _ImageComparisonBase(
        func, tol=tol, remove_text=remove_text, savefig_kwargs=savefig_kwargs
    )
    matplotlib.testing.set_font_settings_for_testing()
    with _collect_new_figures() as figs:
        func(*args, **kwargs)
    assert len(figs) == len(
        baseline_images
    ), "Test generated {} images but there are {} baseline images".format(
        len(figs), len(baseline_images)
    )
    for fig, baseline in zip(figs, baseline_images):
        img.compare(fig, baseline, _default_extension, _lock=False)