

"""simple docstring"""

def 				__UpperCamelCase   (    a__: list			)				->			bool:




					"""simple docstring"""



					if not isinstance(a__ ,	a__			):
										raise ValueError('''Input series is not valid, valid series - [2, 4, 8]'''			)
					if len(a__			) == 0:
										raise ValueError('''Input list must be a non empty list'''			)
					if len(a__			) == 1:
										return True
					try:
										__lowercase												=			series[1] / series[0]
										for index in range(len(a__			) - 1			):
															if series[index + 1] / series[index] != common_ratio:
																				return False
					except ZeroDivisionError:
										return False
					return True





def 				__UpperCamelCase   (    a__: list			)				->			float:




					"""simple docstring"""



					if not isinstance(a__ ,	a__			):
										raise ValueError('''Input series is not valid, valid series - [2, 4, 8]'''			)
					if len(a__			) == 0:
										raise ValueError('''Input list must be a non empty list'''			)
					__lowercase												=			1
					for value in series:
										answer *= value
					return pow(a__ ,	1 / len(a__			)			)


if __name__ == "__main__":
							import doctest

							doctest.testmod()





"""simple docstring"""

import unittest
import warnings

from datasets.utils import experimental





@experimental
def 				__UpperCamelCase   (    )				->			Optional[Any]:




					"""simple docstring"""



					return "success"


class 			_snake_case     (						unittest.TestCase       ):







						def        _UpperCamelCase    (self							)			->						Tuple:
											with warnings.catch_warnings(record=UpperCAmelCase_							) as w:
																warnings.simplefilter('''always'''							)
																self.assertEqual(dummy_function()     ,							'''success'''							)
											self.assertEqual(len(UpperCAmelCase_							)     ,							1							)


