



"""simple docstring"""

from ...processing_utils import ProcessorMixin







class    __lowercase     (					_UpperCAmelCase):







						"""simple docstring"""







						_A		:							Union[str, Any]							       =		["""image_processor""", """feature_extractor"""]
						_A		:							List[str]							       =		"""TvltImageProcessor"""
						_A		:							Optional[Any]							       =		"""TvltFeatureExtractor"""







						def __init__(self   ,		lowercase__   ,		lowercase__       ):
											super().__init__(image_processor=lowercase__   ,		feature_extractor=lowercase__       )

											snake_case_					:		str 					=					image_processor
											snake_case_					:		Dict 					=					feature_extractor







						def __call__(self   ,		lowercase__=None   ,		lowercase__=None   ,		lowercase__=None   ,		lowercase__=None   ,		lowercase__=False   ,		lowercase__=False   ,		*lowercase__   ,		**lowercase__   ,		):

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

											snake_case_					:		Optional[Any] 					=					None
											if images is not None:
																snake_case_					:		str 					=					self.image_processor(lowercase__   ,		mask_pixel=lowercase__   ,		*lowercase__   ,		**lowercase__       )
											if images_mixed is not None:
																snake_case_					:		Union[str, Any] 					=					self.image_processor(lowercase__   ,		is_mixed=lowercase__   ,		*lowercase__   ,		**lowercase__       )
											if audio is not None:
																snake_case_					:		Tuple 					=					self.feature_extractor(
																    lowercase__   ,		*lowercase__   ,		sampling_rate=lowercase__   ,		mask_audio=lowercase__   ,		**lowercase__       )

											snake_case_					:		int 					=					{}
											if audio is not None:
																output_dict.update(lowercase__       )
											if images is not None:
																output_dict.update(lowercase__       )
											if images_mixed_dict is not None:
																output_dict.update(lowercase__       )
											return output_dict







						@property
						def 						__UpperCamelCase							(self       ):
											snake_case_					:		List[Any] 					=					self.image_processor.model_input_names
											snake_case_					:		Union[str, Any] 					=					self.feature_extractor.model_input_names
											return list(dict.fromkeys(image_processor_input_names + feature_extractor_input_names       )       )









"""simple docstring"""

def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  int				,    SCREAMING_SNAKE_CASE__ :  int			):



					"""simple docstring"""





					return numa ^ numa < 0


if __name__ == "__main__":
			import doctest

			doctest.testmod()




