

"""simple docstring"""






def 		A_	(   __UpperCamelCase     :				str				):
		lowercase										=							str(__UpperCamelCase				).strip()
		if not bin_string:
				raise ValueError('''Empty string was passed to the function'''				)
		lowercase										=							bin_string[0] == '''-'''
		if is_negative:
				lowercase										=							bin_string[1:]
		if not all(char in '''01''' for char in bin_string				):
				raise ValueError('''Non-binary value was passed to the function'''				)
		lowercase										=							0
		for char in bin_string:
				lowercase										=							2 * decimal_number + int(__UpperCamelCase				)
		return -decimal_number if is_negative else decimal_number


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

							testmod()


"""simple docstring"""






from typing import TYPE_CHECKING

from ...utils import _LazyModule


__lowerCAmelCase				      =   {'''tokenization_phobert''': ['''PhobertTokenizer''']}


if TYPE_CHECKING:
							from .tokenization_phobert import PhobertTokenizer

else:
							import sys

							__lowerCAmelCase				      =   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)