


"""simple docstring"""


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

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



@dataclass(frozen=UpperCAmelCase_			)
class 			lowerCamelCase__						(   UpperCAmelCase_			):
						lowerCAmelCase       =     field(default="""audio-classification"""							,    metadata={"""include_in_asdict_even_if_is_default""": True}			)
						lowerCAmelCase       =     Features({"""audio""": Audio()}			)
						lowerCAmelCase       =     Features({"""labels""": ClassLabel}			)
						lowerCAmelCase       =     "audio"
						lowerCAmelCase       =     "labels"







						def __a						(							self   :    List[str]			,			_lowercase   :    int		):
								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]			,			_lowercase		):
										raise ValueError(f'Column {self.label_column} is not a ClassLabel.'		)
								A					       = copy.deepcopy(self		)
								A					       = self.label_schema.copy()
								A					       = features[self.label_column]
								A					       = label_schema
								return task_template







						@property
						def __a						(							self   :    List[Any]		):
								return {
								    self.audio_column: "audio",
								    self.label_column: "labels",
								}









"""simple docstring"""


from __future__ import annotations







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		if not nums:
				return 0
		A					       = nums[0]
		A					       = 0
		for num in nums[1:]:
				A       , A					       = (
				    max_excluding + num,
				    max(UpperCamelCase__ ,			UpperCamelCase__	),
				)
		return max(UpperCamelCase__ ,			UpperCamelCase__	)


if __name__ == "__main__":
	import doctest

	doctest.testmod()





