


from collections.abc import Sequence







def SCREAMING_SNAKE_CASE	(			__lowerCAmelCase							,   __lowerCAmelCase = False				)    ->				float:
  if not arr:
    return 0

  snake_case__						= 0 if allow_empty_subarrays else float('''-inf'''				)
  snake_case__						= 0.0
  for num in arr:
    snake_case__						= max(0 if allow_empty_subarrays else num							,   curr_sum + num				)
    snake_case__						= max(__lowerCAmelCase							,   __lowerCAmelCase				)

  return max_sum


if __name__ == "__main__":
   from doctest import testmod

   testmod()

   lowerCamelCase__							:						Any							     =   [-2, 1, -3, 4, -1, 2, 1, -5, 4]
   print(F"""{max_subarray_sum(nums) = }""")





import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


lowerCamelCase__							:						int							     =   logging.get_logger(__name__)
class 		__magic_name__						(snake_case_				):





     '''simple docstring'''



     def __init__(					self:List[Any]     ,		*_a:Dict     ,		**_a:Tuple   ):
       warnings.warn(
           '''The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
           ''' Please use PerceiverImageProcessor instead.'''     ,		_a     ,		)
       super().__init__(*_a     ,		**_a   )

