def METHOD_NAME(scheduler):
    from distributed.diagnostics.nvml import device_get_count
    METHOD_NAME = {
        "pages": [
            "status",
            "workers",
            "tasks",
            "system",
            *(["gpu"] if device_get_count() > 0 else []),
            "profile",
            "graph",
            "groups",
            "info",
        ],
        "plots": [
            {
                "url": x.strip("/"),
                "name": " ".join(x.strip("/").split("-")[1:])
                .title()
                .replace("Cpu", "CPU")
                .replace("Gpu", "GPU")
                .replace("Rmm", "RMM"),
            }
            for x in applications
            if "individual" in x
        ]
        + [{"url": "hardware", "name": "Hardware"}],
        "jupyter": scheduler.jupyter,
    }
    METHOD_NAME["plots"] = sorted(
        METHOD_NAME["plots"], key=lambda d: d["name"]
    )
    return METHOD_NAME