

from ..utils import DummyObject, requires_backends



class   __lowercase				( metaclass=UpperCAmelCase_	):




			"""simple docstring"""







			_UpperCAmelCase   :							Tuple										=     ["torch", "scipy"]



			def __init__( self  :     Any   ,						*lowerCAmelCase__  :     Optional[Any]   ,						**lowerCAmelCase__  :     Dict):
									requires_backends(self   ,						["torch", "scipy"])



			@classmethod
			def        _SCREAMING_SNAKE_CASE			( cls  :     str   ,						*lowerCAmelCase__  :     str   ,						**lowerCAmelCase__  :     List[str]):
									requires_backends(cls   ,						["torch", "scipy"])




			@classmethod
			def        _SCREAMING_SNAKE_CASE			( cls  :     Tuple   ,						*lowerCAmelCase__  :     Dict   ,						**lowerCAmelCase__  :     Optional[Any]):
									requires_backends(cls   ,						["torch", "scipy"])









"""simple docstring"""





def   _A  (  UpperCamelCase_     :       list[int])	->						float:
   '''simple docstring'''


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

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


if __name__ == "__main__":
   import doctest

   doctest.testmod()




