





def      A__       (    SCREAMING_SNAKE_CASE_   :      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'''						)
   _UpperCAmelCase           =   ''''''
   while len(SCREAMING_SNAKE_CASE_						) % 3 != 0:
      _UpperCAmelCase           =   '''0''' + bin_string
   _UpperCAmelCase           =   [
       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:
      _UpperCAmelCase           =   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()






from ..utils import DummyObject, requires_backends




class 			__UpperCamelCase    (							metaclass=A__    ):
     __A	:  str							  =   ["""torch""", """scipy"""]





     def __init__(     self				,							*_UpperCamelCase				,							**_UpperCamelCase					):
        requires_backends(self				,							['''torch''', '''scipy''']					)





     @classmethod
     def 		UpperCamelCase(     cls				,							*_UpperCamelCase				,							**_UpperCamelCase					):
        requires_backends(cls				,							['''torch''', '''scipy''']					)





     @classmethod
     def 		UpperCamelCase(     cls				,							*_UpperCamelCase				,							**_UpperCamelCase					):
        requires_backends(cls				,							['''torch''', '''scipy''']					)