def METHOD_NAME(tmp_path):
    # test that the show code indeed (formally) runs
    onset = np.linspace(0, 19.0, 20)
    duration = np.full(20, 0.5)
    trial_idx = np.arange(20)
    # This makes 11 events in order to test cmap error
    trial_idx[11:] -= 10
    condition_ids = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"]
    trial_type = np.array([condition_ids[i] for i in trial_idx])
    model_event = pd.DataFrame(
        {"onset": onset, "duration": duration, "trial_type": trial_type}
    )
    # Test Dataframe
    fig = plot_event(model_event)
    assert fig is not None
    # Test List
    fig = plot_event([model_event, model_event])
    assert fig is not None
    # Test error
    with pytest.raises(ValueError):
        fig = plot_event(model_event, cmap="tab10")
    # Test save
    fig = plot_event(model_event, output_file=tmp_path / "event.png")
    assert (tmp_path / "event.png").exists()
    assert fig is None
    plot_event(model_event, output_file=tmp_path / "event.pdf")
    assert (tmp_path / "event.pdf").exists()