

'''simple docstring'''

from ...processing_utils import ProcessorMixin






class    snake_case     (      lowercase_		):






				"""simple docstring"""
				_a    	=     """WhisperFeatureExtractor"""
				_a    	=     """WhisperTokenizer"""



				def __init__(    self,     _lowercase,     _lowercase       )     ->							List[Any]:
											super().__init__(_lowercase,     _lowercase       )
											SCREAMING_SNAKE_CASE_				=				self.feature_extractor
											SCREAMING_SNAKE_CASE_				=				False



				def   a__					(    self,     _lowercase=None,     _lowercase=None,     _lowercase=True       )     ->							List[str]:
											return self.tokenizer.get_decoder_prompt_ids(task=_lowercase,     language=_lowercase,     no_timestamps=_lowercase       )



				def __call__(    self,     *_lowercase,     **_lowercase       )     ->							Any:
											# For backward compatibility
											if self._in_target_context_manager:
																		return self.current_processor(*_lowercase,     **_lowercase       )

											SCREAMING_SNAKE_CASE_				=				kwargs.pop('audio',     _lowercase       )
											SCREAMING_SNAKE_CASE_				=				kwargs.pop('sampling_rate',     _lowercase       )
											SCREAMING_SNAKE_CASE_				=				kwargs.pop('text',     _lowercase       )
											if len(_lowercase       ) > 0:
																		SCREAMING_SNAKE_CASE_				=				args[0]
																		SCREAMING_SNAKE_CASE_				=				args[1:]

											if audio is None and text is None:
																		raise ValueError('You need to specify either an `audio` or `text` input to process.'       )

											if audio is not None:
																		SCREAMING_SNAKE_CASE_				=				self.feature_extractor(_lowercase,     *_lowercase,     sampling_rate=_lowercase,     **_lowercase       )
											if text is not None:
																		SCREAMING_SNAKE_CASE_				=				self.tokenizer(_lowercase,     **_lowercase       )

											if text is None:
																		return inputs

											elif audio is None:
																		return encodings
											else:
																		SCREAMING_SNAKE_CASE_				=				encodings['input_ids']
																		return inputs



				def   a__					(    self,     *_lowercase,     **_lowercase       )     ->							int:
											return self.tokenizer.batch_decode(*_lowercase,     **_lowercase       )



				def   a__					(    self,     *_lowercase,     **_lowercase       )     ->							int:
											return self.tokenizer.decode(*_lowercase,     **_lowercase       )





				def   a__					(    self,     _lowercase,     _lowercase="np"       )     ->							Optional[Any]:
											return self.tokenizer.get_prompt_ids(_lowercase,     return_tensors=_lowercase       )








'''simple docstring'''

SCREAMING_SNAKE_CASE							:				Union[str, Any]     	=			0  # The first color of the flag.
SCREAMING_SNAKE_CASE							:				List[str]     	=			1  # The second color of the flag.
SCREAMING_SNAKE_CASE							:				Optional[Any]     	=			2  # The third color of the flag.
SCREAMING_SNAKE_CASE							:				Tuple     	=			(red, white, blue)




def 							_UpperCamelCase				(   lowerCAmelCase__:					list   )      -> list:
							if not sequence:
														return []
							if len(lowerCAmelCase__   ) == 1:
														return list(lowerCAmelCase__   )
							SCREAMING_SNAKE_CASE_				=				0
							SCREAMING_SNAKE_CASE_				=				len(lowerCAmelCase__   ) - 1
							SCREAMING_SNAKE_CASE_				=				0
							while mid <= high:
														if sequence[mid] == colors[0]:
																					SCREAMING_SNAKE_CASE_				,    SCREAMING_SNAKE_CASE_				=				sequence[mid], sequence[low]
																					low += 1
																					mid += 1
														elif sequence[mid] == colors[1]:
																					mid += 1
														elif sequence[mid] == colors[2]:
																					SCREAMING_SNAKE_CASE_				,    SCREAMING_SNAKE_CASE_				=				sequence[high], sequence[mid]
																					high -= 1
														else:
																					SCREAMING_SNAKE_CASE_				=				F"""The elements inside the sequence must contains only {colors} values"""
																					raise ValueError(lowerCAmelCase__   )
							return sequence


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							SCREAMING_SNAKE_CASE							:				str     	=			input("Enter numbers separated by commas:\n").strip()
							SCREAMING_SNAKE_CASE							:				List[Any]     	=			[int(item.strip()) for item in user_input.split(",")]
							print(f"{dutch_national_flag_sort(unsorted)}")





