
def  a_	( __lowercase     :			Optional[int]				)				->						int:
			_snake_case						=    str(__lowerCamelCase				).strip()
			if not oct_string:
						raise ValueError('Empty string was passed to the function'				)
			_snake_case						=    oct_string[0] == """-"""
			if is_negative:
						_snake_case						=    oct_string[1:]
			if not oct_string.isdigit() or not all(0 <= int(__lowerCamelCase				) <= 7 for char in oct_string				):
						raise ValueError('Non-octal value was passed to the function'				)
			_snake_case						=    0
			for char in oct_string:
						_snake_case						=    8 * decimal_number + int(__lowerCamelCase				)
			if is_negative:
						_snake_case						=    -decimal_number
			return decimal_number


if __name__ == "__main__":
			from doctest import testmod

			testmod()


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available


_lowerCamelCase :       Optional[int]     					=    {}

try:
			if not is_sentencepiece_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_lowerCamelCase :       List[str]     					=    ['''MBart50Tokenizer''']

try:
			if not is_tokenizers_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_lowerCamelCase :       Optional[int]     					=    ['''MBart50TokenizerFast''']


if TYPE_CHECKING:
			try:
						if not is_sentencepiece_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_mbartaa import MBartaaTokenizer

			try:
						if not is_tokenizers_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_mbartaa_fast import MBartaaTokenizerFast

else:
			import sys

			_lowerCamelCase :       int     					=    _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)