def METHOD_NAME(confmaps, video, scale=None, standalone=False, callback=None):
    """Demo function."""
    from qtpy import QtWidgets
    from sleap.gui.widgets.video import QtVideoPlayer
    if standalone:
        app = QtWidgets.QApplication([])
    win = QtVideoPlayer(video=video)
    win.setWindowTitle("confmaps")
    win.show()
    def plot_confmaps(parent, frame_idx):
        if frame_idx < confmaps.shape[0]:
            frame_conf_map = ConfMapsPlot(confmaps[frame_idx, ...], show_box=not scale)
            if scale:
                frame_conf_map.setScale(scale)
            win.view.scene.addItem(frame_conf_map)
    win.changedPlot.connect(plot_confmaps)
    if callback:
        win.changedPlot.connect(callback)
    win.plot()
    if standalone:
        app.exec_()
    return win