def METHOD_NAME(self, program_name: str, windows: Dict[str, Tuple[numpy.ndarray,
                                                                                   numpy.ndarray]]) -> None:
    program = self._registered_programs.setdefault(program_name, AlazarProgram())
    sample_rate = self.current_sample_rate_in_giga_herz
    program.clear_masks()
    for mask_name, (begins, lengths) in windows.items():
        program.set_measurement_mask(mask_name, sample_rate, begins, lengths)