





import baseaa


def       SCREAMING_SNAKE_CASE__  (       _lowercase     : str			)   ->							bytes:




		'''simple docstring'''
		return baseaa.baaencode(string.encode('utf-8'			)			)


def       SCREAMING_SNAKE_CASE__  (       _lowercase     : bytes			)   ->							str:




		'''simple docstring'''
		return baseaa.baadecode(_lowercase			).decode('utf-8'			)


if __name__ == "__main__":
			__UpperCamelCase:	str = """Hello World!"""
			__UpperCamelCase:	Optional[int] = baseaa_encode(test)
			print(encoded)

			__UpperCamelCase:	Tuple = baseaa_decode(encoded)
			print(decoded)









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


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

			testmod()


