

'''simple docstring'''

from ..utils import DummyObject, requires_backends


class 	lowerCAmelCase  (   metaclass=A ):
       lowerCAmelCase_												=			["torch", "scipy"]







       def __init__(				self      :			Any    ,   *__lowercase      :			Optional[Any]    ,   **__lowercase      :			Dict   ):







            """simple docstring"""







            requires_backends(self    ,   ['torch', 'scipy']   )







       @classmethod
       def       snake_case (				cls      :			Optional[Any]    ,   *__lowercase      :			Optional[int]    ,   **__lowercase      :			List[str]   ):







            """simple docstring"""







            requires_backends(cls    ,   ['torch', 'scipy']   )







       @classmethod
       def       snake_case (				cls      :			Union[str, Any]    ,   *__lowercase      :			List[Any]    ,   **__lowercase      :			Tuple   ):







            """simple docstring"""







            requires_backends(cls    ,   ['torch', 'scipy']   )





'''simple docstring'''

def 					__UpperCamelCase				(						lowercase__    :	list[int]			):






     '''simple docstring'''





     if not nums:  # Makes sure that the list is not empty
          raise ValueError('List is empty'			)

     __lowercase      		=sum(lowercase__			) / len(lowercase__			)  # Calculate the average
     return sum(abs(x - average			) for x in nums			) / len(lowercase__			)


if __name__ == "__main__":
       import doctest

       doctest.testmod()


