def METHOD_NAME(
    models, model_diags, has_cutoff_plots, metadata, report_url, title
):
    common_coords = {"tile": range(6), "x": range(48), "y": range(48)}
    grid = catalog["grid/c48"].read().assign_coords(common_coords)
    report_sections: MutableMapping[str, Sequence[str]] = {}
    with tempfile.TemporaryDirectory() as temp_output_dir:
        metrics = make_diagnostic_plots(
            report_sections,
            temp_output_dir,
            models,
            model_diags,
            grid,
            has_cutoff_plots,
        )
        # creates html text based on the above sections
        html_index = report.create_html(
            sections=report_sections,
            title=title,
            metadata=metadata,
            metrics=metrics,
            collapse_metadata=True,
        )
        with open(os.path.join(temp_output_dir, "index.html"), "w") as f:
            f.write(html_index)
        copy_outputs(temp_output_dir, report_url)
        print(f"Saved report to {report_url}")
        if report_url.startswith("gs://"):
            web_url = report_url.replace("gs://", "https://storage.googleapis.com/")
            web_url = os.path.join(web_url, "index.html")
            print(f"Find this report now at {web_url}.")