



'''simple docstring'''





from ..utils import DummyObject, requires_backends






class 					lowerCamelCase_    (				metaclass=SCREAMING_SNAKE_CASE_     ):
  """simple docstring"""




  a_												=["""transformers""", """torch""", """note_seq"""]




  def __init__( self      :	List[Any]			,	*_a      :	List[str]			,	**_a      :	Dict   )					->					Tuple:
    requires_backends(self			,	['transformers', 'torch', 'note_seq']   )




  @classmethod
  def 						_lowercase     ( cls      :	Optional[int]			,	*_a      :	int			,	**_a      :	Optional[int]   )					->					Optional[int]:
    requires_backends(cls			,	['transformers', 'torch', 'note_seq']   )




  @classmethod
  def 						_lowercase     ( cls      :	Optional[Any]			,	*_a      :	Optional[int]			,	**_a      :	Any   )					->					Optional[Any]:
    requires_backends(cls			,	['transformers', 'torch', 'note_seq']   )











'''simple docstring'''





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


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

   testmod()






