
def  lowerCAmelCase__			(  SCREAMING_SNAKE_CASE_     )				->		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__      :      Optional[Any]         =		''
			while len(SCREAMING_SNAKE_CASE_     ) % 3 != 0:
						lowerCAmelCase__      :      Union[str, Any]         =		'0' + bin_string
			lowerCAmelCase__      :      Any         =		[
			    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:
						lowerCAmelCase__      :      Optional[int]         =		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()

import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Audio, ClassLabel, Features
from .base import TaskTemplate







@dataclass(frozen=__magic_name__	)
class      A__							(     __magic_name__	):
				lowercase			    =  field(default='audio-classification'						,   metadata={'include_in_asdict_even_if_is_default': True}	)
				lowercase			    =  Features({'audio': Audio()}	)
				lowercase			    =  Features({'labels': ClassLabel}	)
				lowercase			    =  "audio"
				lowercase			    =  "labels"






				def 							_lowerCamelCase		(						self					:      Dict    ,     a					:      Tuple   ):






							'''simple docstring'''







							if self.label_column not in features:
										raise ValueError(f'''Column {self.label_column} is not present in features.'''   )
							if not isinstance(features[self.label_column]    ,     a   ):
										raise ValueError(f'''Column {self.label_column} is not a ClassLabel.'''   )
							lowerCAmelCase__      :      Tuple         =		copy.deepcopy(self   )
							lowerCAmelCase__      :      List[Any]         =		self.label_schema.copy()
							lowerCAmelCase__      :      List[Any]         =		features[self.label_column]
							lowerCAmelCase__      :      Optional[int]         =		label_schema
							return task_template






				@property
				def 							_lowerCamelCase		(						self					:      List[str]   ):






							'''simple docstring'''







							return {
							    self.audio_column: "audio",
							    self.label_column: "labels",
							}