def create_image(templ):
    image = sh.create_heatmap_on_matplotlib_widget(
        a3,
        smoothed_avg_templates_all[templ, :, :],
        const_all.prb_file,
        window_size=40,
        bad_channels=None,
        num_of_shanks=1,
        rotate_90=False,
        flip_lr=False,
        flip_ud=False)
def plot_topoplot_deci(i):
    t = template_info_desi_nonMUA.iloc[i]['template number']
    smoothed_topoplot_all = sh.create_heatmap_on_matplotlib_widget(
        a2,
        avg_templates_bs_desi[t, :, :],
        prb_file,
        window_size=40,
        bad_channels=None,
        num_of_shanks=1,
        rotate_90=False,
        flip_lr=True,
        flip_ud=False)
def plot_topoplot_all(i):
    t = template_info_all_nonMUA.iloc[i]['template number']
    _ = sh.create_heatmap_on_matplotlib_widget(
        a1,
        smoothed_avg_templates_all[t, :, :],
        const_all.prb_file,
        window_size=40,
        bad_channels=None,
        num_of_shanks=1,
        rotate_90=False,
        flip_lr=True,
        flip_ud=False)