
"""simple docstring"""


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

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


if __name__ == "__main__":
						import doctest

						doctest.testmod()







'''simple docstring'''
from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


lowerCAmelCase   : Dict             =				{"""configuration_van""": ["""VAN_PRETRAINED_CONFIG_ARCHIVE_MAP""", """VanConfig"""]}


try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowerCAmelCase   : int             =				[
					    """VAN_PRETRAINED_MODEL_ARCHIVE_LIST""",
					    """VanForImageClassification""",
					    """VanModel""",
					    """VanPreTrainedModel""",
					]

if TYPE_CHECKING:
					from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_van import (
										    VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
										    VanForImageClassification,
										    VanModel,
										    VanPreTrainedModel,
										)

else:
					import sys

					lowerCAmelCase   : Tuple             =				_LazyModule(__name__, globals()["""__file__"""], _import_structure)


