
'''simple docstring'''



def    lowerCAmelCase_	(				SCREAMING_SNAKE_CASE_						)     ->     str:




   """simple docstring"""
   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"""						)
   _SCREAMING_SNAKE_CASE      =				""""""
   while len(SCREAMING_SNAKE_CASE_						) % 3 != 0:
      _SCREAMING_SNAKE_CASE      =				"""0""" + bin_string
   _SCREAMING_SNAKE_CASE      =				[
       bin_string[index : index + 3]
       for index in range(len(SCREAMING_SNAKE_CASE_						)						)
       if index % 3 == 0
   ]
   for bin_group in bin_string_in_3_list:
      _SCREAMING_SNAKE_CASE      =				0
      for index, val in enumerate(SCREAMING_SNAKE_CASE_						):
         oct_val += int(2 ** (2 - index) * int(SCREAMING_SNAKE_CASE_						)						)
      oct_string += str(SCREAMING_SNAKE_CASE_						)
   return oct_string


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

     testmod()








'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available


UpperCamelCase__      :		int       							=  {"tokenization_herbert": ["HerbertTokenizer"]}

try:
     if not is_tokenizers_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCamelCase__      :		Tuple       							=  ["HerbertTokenizerFast"]


if TYPE_CHECKING:
     from .tokenization_herbert import HerbertTokenizer

     try:
          if not is_tokenizers_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .tokenization_herbert_fast import HerbertTokenizerFast

else:
     import sys

     UpperCamelCase__      :		Tuple       							=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)






