



def 				A      (	_UpperCAmelCase							:  float       )							->					float:







			'''simple docstring'''
			return -num if num < 0 else num





def 				A      (	_UpperCAmelCase							:  list[int]       )							->					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 				A      (	_UpperCAmelCase							:  list[int]       )							->					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 				A      (	_UpperCAmelCase							:  list[int]       )							->					int:







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





def 				A      (	)							->					str:







			'''simple docstring'''
			assert abs_val(0       ) == 0
			assert abs_val(34       ) == 34
			assert abs_val(-100_000_000_000       ) == 100_000_000_000

			_UpperCAmelCase									=  [-3, -1, 2, -11]
			assert abs_max(_UpperCAmelCase       ) == -11
			assert abs_max_sort(_UpperCAmelCase       ) == -11
			assert abs_min(_UpperCAmelCase       ) == -1


if __name__ == "__main__":
							import doctest

							doctest.testmod()

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





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


UpperCAmelCase__  =			{
    "configuration_align": [
        "ALIGN_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "AlignConfig",
        "AlignTextConfig",
        "AlignVisionConfig",
    ],
    "processing_align": ["AlignProcessor"],
}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							UpperCAmelCase__  =			[
							    "ALIGN_PRETRAINED_MODEL_ARCHIVE_LIST",
							    "AlignModel",
							    "AlignPreTrainedModel",
							    "AlignTextModel",
							    "AlignVisionModel",
							]

if TYPE_CHECKING:
							from .configuration_align import (
							    ALIGN_PRETRAINED_CONFIG_ARCHIVE_MAP,
							    AlignConfig,
							    AlignTextConfig,
							    AlignVisionConfig,
							)
							from .processing_align import AlignProcessor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_align import (
														    ALIGN_PRETRAINED_MODEL_ARCHIVE_LIST,
														    AlignModel,
														    AlignPreTrainedModel,
														    AlignTextModel,
														    AlignVisionModel,
														)

else:
							import sys

							UpperCAmelCase__  =			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
