





'''simple docstring'''
def 				lowercase__   (   __lowercase						:  list[int]     ) ->      int:



       """simple docstring"""






       if not numbers:
              return 0

       if not isinstance(__lowercase				,  (list, tuple)     ) or not all(
           isinstance(__lowercase				,  __lowercase     ) for number in numbers     ):
              raise ValueError('numbers must be an iterable of integers'     )

       __UpperCamelCase       =  __UpperCamelCase       =  __UpperCamelCase       =  numbers[0]

       for i in range(1				,  len(__lowercase     )     ):
              # update the maximum and minimum subarray products
              __UpperCamelCase       =  numbers[i]
              if number < 0:
                     __UpperCamelCase       ,						__UpperCamelCase       =  min_till_now, max_till_now
              __UpperCamelCase       =  max(__lowercase				,  max_till_now * number     )
              __UpperCamelCase       =  min(__lowercase				,  min_till_now * number     )

              # update the maximum product found till now
              __UpperCamelCase       =  max(__lowercase				,  __lowercase     )

       return max_prod







'''simple docstring'''

import warnings


warnings.warn(
    "memory_utils has been reorganized to utils.memory. Import `find_executable_batchsize` from the main `__init__`: "
    "`from accelerate import find_executable_batch_size` to avoid this warning.",
    FutureWarning,
)



