def METHOD_NAME(mock_generate_peaks: mock.MagicMock) -> tuple[str, str]:
    mock_generate_peaks.side_effect = lambda _: WaveformProvider.generate_waveform()
    out = StringIO()
    err = StringIO()
    call_command("generatewaveforms", no_rate_limit=True, stdout=out, stderr=err)
    return out.getvalue(), err.getvalue()