



"""simple docstring"""






def 	snake_case__  (						__lowerCamelCase							:       float      ):
			"""simple docstring"""
			return -num if num < 0 else num






def 	snake_case__  (						__lowerCamelCase							:       list[int]      ):
			"""simple docstring"""
			if len(__lowerCamelCase      ) == 0:
						raise ValueError('''abs_min() arg is an empty sequence'''      )
			lowerCamelCase__						:						List[str]						      =x[0]
			for i in x:
						if abs_val(__lowerCamelCase      ) < abs_val(__lowerCamelCase      ):
									lowerCamelCase__						:						Optional[int]						      =i
			return j






def 	snake_case__  (						__lowerCamelCase							:       list[int]      ):
			"""simple docstring"""
			if len(__lowerCamelCase      ) == 0:
						raise ValueError('''abs_max() arg is an empty sequence'''      )
			lowerCamelCase__						:						Dict						      =x[0]
			for i in x:
						if abs(__lowerCamelCase      ) > abs(__lowerCamelCase      ):
									lowerCamelCase__						:						Dict						      =i
			return j






def 	snake_case__  (						__lowerCamelCase							:       list[int]      ):
			"""simple docstring"""
			if len(__lowerCamelCase      ) == 0:
						raise ValueError('''abs_max_sort() arg is an empty sequence'''      )
			return sorted(__lowerCamelCase				,						key=__lowerCamelCase      )[-1]






def 	snake_case__  (						):
			"""simple docstring"""
			assert abs_val(0      ) == 0
			assert abs_val(34      ) == 34
			assert abs_val(-100000000000      ) == 100000000000

			lowerCamelCase__						:						Union[str, Any]						      =[-3, -1, 2, -11]
			assert abs_max(__lowerCamelCase      ) == -11
			assert abs_max_sort(__lowerCamelCase      ) == -11
			assert abs_min(__lowerCamelCase      ) == -1


if __name__ == "__main__":
		import doctest

		doctest.testmod()

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









"""simple docstring"""






from typing import TYPE_CHECKING

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


_lowercase					:					Any 		=		{
    "configuration_unispeech_sat": ["UNISPEECH_SAT_PRETRAINED_CONFIG_ARCHIVE_MAP", "UniSpeechSatConfig"],
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		_lowercase					:					Any 		=		[
		    "UNISPEECH_SAT_PRETRAINED_MODEL_ARCHIVE_LIST",
		    "UniSpeechSatForAudioFrameClassification",
		    "UniSpeechSatForCTC",
		    "UniSpeechSatForPreTraining",
		    "UniSpeechSatForSequenceClassification",
		    "UniSpeechSatForXVector",
		    "UniSpeechSatModel",
		    "UniSpeechSatPreTrainedModel",
		]

if TYPE_CHECKING:
		from .configuration_unispeech_sat import UNISPEECH_SAT_PRETRAINED_CONFIG_ARCHIVE_MAP, UniSpeechSatConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_unispeech_sat import (
				    UNISPEECH_SAT_PRETRAINED_MODEL_ARCHIVE_LIST,
				    UniSpeechSatForAudioFrameClassification,
				    UniSpeechSatForCTC,
				    UniSpeechSatForPreTraining,
				    UniSpeechSatForSequenceClassification,
				    UniSpeechSatForXVector,
				    UniSpeechSatModel,
				    UniSpeechSatPreTrainedModel,
				)

else:
		import sys

		_lowercase					:					int 		=		_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)




