def METHOD_NAME(image, analysis_segmentation2, tmp_path, qapp):
    settings = PartSettings(tmp_path)
    settings.image = image
    settings.set_project_info(analysis_segmentation2)
    return settings