






def   __lowercase       (			snake_case			):







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


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

					testmod()














from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available


SCREAMING_SNAKE_CASE__   :      Optional[int]				=		{"""tokenization_herbert""": ["""HerbertTokenizer"""]}

try:
					if not is_tokenizers_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					SCREAMING_SNAKE_CASE__   :      Optional[Any]				=		["""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

					SCREAMING_SNAKE_CASE__   :      Union[str, Any]				=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






