from ...processing_utils import ProcessorMixin
from ...tokenization_utils_base import BatchEncoding

class    snake_case       (   UpperCamelCase_    ):
  lowercase_								=  ['image_processor', 'tokenizer']
  lowercase_								=  'AutoImageProcessor'
  lowercase_								=  'AutoTokenizer'




  def __init__(   self  :						List[Any]  ,			a_  :						int  ,			a_  :						Union[str, Any]					)->							List[Any]:




       """simple docstring"""
       super().__init__(a_  ,			a_					)
       SCREAMING_SNAKE_CASE__					:					str      =		self.image_processor




  def __call__(   self  :						Tuple  ,			a_  :						str=None  ,			a_  :						List[Any]=None  ,			a_  :						Optional[Any]=None  ,			**a_  :						Dict					)->							Tuple:




       """simple docstring"""

       if text is None and images is None:
            raise ValueError('You have to specify either text or images. Both cannot be none.'					)

       if text is not None:
            SCREAMING_SNAKE_CASE__					:					Any      =		self.tokenizer(a_  ,			return_tensors=a_  ,			**a_					)

       if images is not None:
            SCREAMING_SNAKE_CASE__					:					Optional[int]      =		self.image_processor(a_  ,			return_tensors=a_  ,			**a_					)

       if text is not None and images is not None:
            SCREAMING_SNAKE_CASE__					:					List[str]      =		image_features.pixel_values
            return encoding
       elif text is not None:
            return encoding
       else:
            return BatchEncoding(data=dict(**a_					)  ,			tensor_type=a_					)




  def 						__lowercase(   self  :						Dict  ,			*a_  :						Any  ,			**a_  :						Any					)->							List[Any]:




       """simple docstring"""
       return self.tokenizer.batch_decode(*a_  ,			**a_					)




  def 						__lowercase(   self  :						Dict  ,			*a_  :						Union[str, Any]  ,			**a_  :						Optional[int]					)->							Dict:




       """simple docstring"""
       return self.tokenizer.decode(*a_  ,			**a_					)




  @property
  def 						__lowercase(   self  :						Any					)->							Any:




       """simple docstring"""
       return ["input_ids", "attention_mask", "pixel_values"]










def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__=2_81_23						):
		lowerCamelCase_	:     Any 						=      [1] * (limit + 1)

		for i in range(2							,int(limit**0.5						) + 1						):
				sum_divs[i * i] += i
				for k in range(i + 1							,limit // i + 1						):
						sum_divs[k * i] += k + i

		lowerCamelCase_	:     List[str] 						=      set()
		lowerCamelCase_	:     List[str] 						=      0

		for n in range(1							,limit + 1						):
				if sum_divs[n] > n:
						abundants.add(lowerCAmelCase__						)

				if not any((n - a in abundants) for a in abundants						):
						res += n

		return res


if __name__ == "__main__":
		print(solution())
