
def 			UpperCamelCase					(    __lowerCamelCase     : str    ):
       if not all(char in "01" for char in bin_string    ):
              raise ValueError("Non-binary value was passed to the function"    )
       if not bin_string:
              raise ValueError("Empty string was passed to the function"    )
       snake_case       :   Tuple							=      ""
       while len(__lowerCamelCase    ) % 3 != 0:
              snake_case       :   Any							=      "0" + bin_string
       snake_case       :   Any							=      [
           bin_string[index : index + 3]
           for index in range(len(__lowerCamelCase    )    )
           if index % 3 == 0
       ]
       for bin_group in bin_string_in_3_list:
              snake_case       :   Union[str, Any]							=      0
              for index, val in enumerate(__lowerCamelCase    ):
                     oct_val += int(2 ** (2 - index) * int(__lowerCamelCase    )    )
              oct_string += str(__lowerCamelCase    )
       return oct_string


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

   testmod()













"""simple docstring"""



from typing import TYPE_CHECKING

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


__A		:       Union[str, Any]  				=		{}

try:
						if not is_sentencepiece_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__A		:       Dict  				=		['''NllbTokenizer''']

try:
						if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__A		:       Dict  				=		['''NllbTokenizerFast''']


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

						try:
												if not is_tokenizers_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .tokenization_nllb_fast import NllbTokenizerFast

else:
						import sys

						__A		:       List[Any]  				=		_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



