
'''simple docstring'''




def 		lowerCAmelCase_				(   snake_case__						):




    '''simple docstring'''



    if not isinstance(snake_case__		,				snake_case__						):
        raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''						)
    if len(snake_case__						) == 0:
        raise ValueError('''Input list must be a non empty list'''						)
    if len(snake_case__						) == 1:
        return True
    A       :   Any					=						series[1] - series[0]
    for index in range(len(snake_case__						) - 1						):
        if series[index + 1] - series[index] != common_diff:
            return False
    return True







def 		lowerCAmelCase_				(   snake_case__						):




    '''simple docstring'''



    if not isinstance(snake_case__		,				snake_case__						):
        raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''						)
    if len(snake_case__						) == 0:
        raise ValueError('''Input list must be a non empty list'''						)
    A       :   Optional[Any]					=						0
    for val in series:
        answer += val
    return answer / len(snake_case__						)


if __name__ == "__main__":
      import doctest

      doctest.testmod()










from diffusers.utils.testing_utils import require_onnxruntime







@require_onnxruntime
class __snake_case			:
   pass






