"""simple docstring"""

def    lowerCAmelCase			(__UpperCamelCase							:    float			):
							"""simple docstring"""


							return -num if num < 0 else num


def    lowerCAmelCase			(__UpperCamelCase							:    list[int]			):
							"""simple docstring"""


							if len(__UpperCamelCase			) == 0:
														raise ValueError('''abs_min() arg is an empty sequence'''			)
							__UpperCamelCase							=x[0]
							for i in x:
														if abs_val(__UpperCamelCase			) < abs_val(__UpperCamelCase			):
																					__UpperCamelCase							=i
							return j


def    lowerCAmelCase			(__UpperCamelCase							:    list[int]			):
							"""simple docstring"""


							if len(__UpperCamelCase			) == 0:
														raise ValueError('''abs_max() arg is an empty sequence'''			)
							__UpperCamelCase							=x[0]
							for i in x:
														if abs(__UpperCamelCase			) > abs(__UpperCamelCase			):
																					__UpperCamelCase							=i
							return j


def    lowerCAmelCase			(__UpperCamelCase							:    list[int]			):
							"""simple docstring"""


							if len(__UpperCamelCase			) == 0:
														raise ValueError('''abs_max_sort() arg is an empty sequence'''			)
							return sorted(__UpperCamelCase							,					key=__UpperCamelCase			)[-1]


def    lowerCAmelCase			():
							"""simple docstring"""


							assert abs_val(0			) == 0
							assert abs_val(3_4			) == 3_4
							assert abs_val(-1_0_0_0_0_0_0_0_0_0_0_0			) == 1_0_0_0_0_0_0_0_0_0_0_0

							__UpperCamelCase							=[-3, -1, 2, -1_1]
							assert abs_max(__UpperCamelCase			) == -1_1
							assert abs_max_sort(__UpperCamelCase			) == -1_1
							assert abs_min(__UpperCamelCase			) == -1


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				test_abs_val()
				print(abs_val(-34))  # --> 34




"""simple docstring"""

from typing import TYPE_CHECKING

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


__lowercase    =				{
    '''configuration_videomae''': ['''VIDEOMAE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''VideoMAEConfig'''],
}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__lowercase    =				[
				    '''VIDEOMAE_PRETRAINED_MODEL_ARCHIVE_LIST''',
				    '''VideoMAEForPreTraining''',
				    '''VideoMAEModel''',
				    '''VideoMAEPreTrainedModel''',
				    '''VideoMAEForVideoClassification''',
				]

try:
				if not is_vision_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__lowercase    =				['''VideoMAEFeatureExtractor''']
				__lowercase    =				['''VideoMAEImageProcessor''']

if TYPE_CHECKING:
				from .configuration_videomae import VIDEOMAE_PRETRAINED_CONFIG_ARCHIVE_MAP, VideoMAEConfig

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_videomae import (
								    VIDEOMAE_PRETRAINED_MODEL_ARCHIVE_LIST,
								    VideoMAEForPreTraining,
								    VideoMAEForVideoClassification,
								    VideoMAEModel,
								    VideoMAEPreTrainedModel,
								)

				try:
								if not is_vision_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .feature_extraction_videomae import VideoMAEFeatureExtractor
								from .image_processing_videomae import VideoMAEImageProcessor

else:
				import sys

				__lowercase    =				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



