def METHOD_NAME(
    data_img: nib.nifti1.Nifti1Image, mask_img: nib.nifti1.Nifti1Image
) -> dict[str, float]:
    plot_params: dict[str, float] = dict()
    mask = np.asanyarray(mask_img.dataobj).astype(bool)
    data = data_img.get_fdata()[mask]
    plot_params = robust_set_limits(data.reshape(-1), plot_params)
    return plot_params