def METHOD_NAME(
    tmp_path: Path,
    sta_mini_zip_path: Path,
    outputs: bool,
    output_list: Optional[List[str]],
    denormalize: bool,
) -> None:
    path_studies = tmp_path / "studies"
    path_studies.mkdir(exist_ok=True)
    export_path = tmp_path / "exports"
    export_path.mkdir()
    with zipfile.ZipFile(sta_mini_zip_path) as zip_output:
        zip_output.extractall(path=path_studies)
    export_study_flat(
        path_studies / "STA-mini",
        export_path / "STA-mini-export",
        Mock(),
        outputs,
        output_list,
        denormalize=denormalize,
    )
    export_output_path = export_path / "STA-mini-export" / "output"
    if outputs:
        assert export_output_path.exists()
        files = set(export_output_path.iterdir())
        if output_list is None:
            assert len(files) == 5
        elif len(output_list) == 0:
            assert not files
        else:
            expected = {export_output_path / item for item in output_list}
            assert files == expected
    else:
        assert not export_output_path.exists()