




'''simple docstring'''



def 			_UpperCamelCase (_lowerCamelCase							:     float	)->   float:




     '''simple docstring'''





     return -num if num < 0 else num







def 			_UpperCamelCase (_lowerCamelCase							:     list[int]	)->   int:




     '''simple docstring'''





     if len(_lowerCamelCase	) == 0:
          raise ValueError('''abs_min() arg is an empty sequence'''	)
     __snake_case    					=  x[0]
     for i in x:
          if abs_val(_lowerCamelCase	) < abs_val(_lowerCamelCase	):
               __snake_case    					=  i
     return j







def 			_UpperCamelCase (_lowerCamelCase							:     list[int]	)->   int:




     '''simple docstring'''





     if len(_lowerCamelCase	) == 0:
          raise ValueError('''abs_max() arg is an empty sequence'''	)
     __snake_case    					=  x[0]
     for i in x:
          if abs(_lowerCamelCase	) > abs(_lowerCamelCase	):
               __snake_case    					=  i
     return j







def 			_UpperCamelCase (_lowerCamelCase							:     list[int]	)->   int:




     '''simple docstring'''





     if len(_lowerCamelCase	) == 0:
          raise ValueError('''abs_max_sort() arg is an empty sequence'''	)
     return sorted(_lowerCamelCase   ,	key=_lowerCamelCase	)[-1]







def 			_UpperCamelCase ()->   Optional[int]:




     '''simple docstring'''





     assert abs_val(0	) == 0
     assert abs_val(34	) == 34
     assert abs_val(-10_00_00_00_00_00	) == 10_00_00_00_00_00

     __snake_case    					=  [-3, -1, 2, -11]
     assert abs_max(_lowerCamelCase	) == -11
     assert abs_max_sort(_lowerCamelCase	) == -11
     assert abs_min(_lowerCamelCase	) == -1


if __name__ == "__main__":
     import doctest

     doctest.testmod()

     test_abs_val()
     print(abs_val(-3_4))  # --> 34












'''simple docstring'''



import warnings

from ...utils import logging
from .image_processing_maskformer import MaskFormerImageProcessor


UpperCAmelCase_       :  int      =		logging.get_logger(__name__)





class     lowerCAmelCase   ( __lowerCAmelCase):


       def __init__(   self    ,  *__SCREAMING_SNAKE_CASE    ,  **__SCREAMING_SNAKE_CASE  )      ->  None:



            '''simple docstring'''




            warnings.warn(
                '''The class MaskFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
                ''' Please use MaskFormerImageProcessor instead.'''    ,  __SCREAMING_SNAKE_CASE    ,  )
            super().__init__(*__SCREAMING_SNAKE_CASE    ,  **__SCREAMING_SNAKE_CASE  )






