def METHOD_NAME(tmp_path, part_settings, qtbot):
    def _constructor(file_list, calculation_plan=None):
        if calculation_plan is None:
            calculation_plan = CalculationPlan()
        dial = CalculationPrepare(
            file_list=file_list,
            calculation_plan=calculation_plan,
            measurement_file_path=tmp_path / "test1.xlsx",
            settings=part_settings,
            batch_manager=CalculationManager(),
        )
        qtbot.addWidget(dial)
        return dial
    return _constructor