


def 							_UpperCAmelCase    (UpperCamelCase__					:  int    ,							UpperCamelCase__					:  Union[str, Any]						):
       _A				:	Optional[Any]       =			0
       for ele in arr:
              total_sum += product_sum(_lowerCAmelCase    ,							depth + 1						) if isinstance(_lowerCAmelCase    ,							_lowerCAmelCase						) else ele
       return total_sum * depth
def 							_UpperCAmelCase    (UpperCamelCase__					:  Optional[Any]						):
       return product_sum(_lowerCAmelCase    ,							1						)


if __name__ == "__main__":
    import doctest

    doctest.testmod()




import warnings

from .generation import FlaxGenerationMixin







class 					lowerCAmelCase__	(    a):




     '''simple docstring'''
     # warning at import time
     warnings.warn(
         "Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will "
         "be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead."					,   a					,   )
