



"""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












# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
__UpperCAmelCase      =				abspath(join(dirname(dirname(dirname(__file__))), "src"))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action="ignore", category=FutureWarning)





def 						A_					(						lowercase_			)				->str:







 """simple docstring"""

 from transformers.testing_utils import pytest_addoption_shared

 pytest_addoption_shared(lowercase_			)





def 						A_					(						lowercase_			)				->Tuple:







 """simple docstring"""

 from transformers.testing_utils import pytest_terminal_summary_main

 SCREAMING_SNAKE_CASE				    =		terminalreporter.config.getoption('--make-reports'			)
 if make_reports:
  pytest_terminal_summary_main(lowercase_	,  id=lowercase_			)




