





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

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




@dataclass(frozen=A__    )
class 			__UpperCamelCase    (							A__    ):
     __A	:  str							  =   field(default="""automatic-speech-recognition"""	, metadata={"""include_in_asdict_even_if_is_default""": True}    )
     __A	:  ClassVar[Features]							  =   Features({"""audio""": Audio()}    )
     __A	:  ClassVar[Features]							  =   Features({"""transcription""": Value("""string"""    )}    )
     __A	:  str							  =   "audio"
     __A	:  str							  =   "transcription"





     def 		UpperCamelCase(     self				,							_UpperCamelCase					):
        if self.audio_column not in features:
           raise ValueError(f'''Column {self.audio_column} is not present in features.'''					)
        if not isinstance(features[self.audio_column]				,							_UpperCamelCase					):
           raise ValueError(f'''Column {self.audio_column} is not an Audio type.'''					)
        _UpperCAmelCase           =   copy.deepcopy(self					)
        _UpperCAmelCase           =   self.input_schema.copy()
        _UpperCAmelCase           =   features[self.audio_column]
        _UpperCAmelCase           =   input_schema
        return task_template





     @property
     def 		UpperCamelCase(     self					):
        return {self.audio_column: "audio", self.transcription_column: "transcription"}




from collections.abc import Callable

import numpy as np






def  lowerCamelCase_	(      lowerCAmelCase__	:	Callable			,	lowerCAmelCase__	:	float			,	lowerCAmelCase__	:	float			,	lowerCAmelCase__	:	float			,	lowerCAmelCase__	:	float				)       ->							np.array:

							'''simple docstring'''






							A      						=    int(np.ceil((x_end - xa) / step_size				)				)
							A      						=    np.zeros((n + 1,)				)
							A      						=    ya
							A      						=    xa

							for k in range(lowerCAmelCase__				):
														A      						=    y[k] + step_size * ode_func(lowerCAmelCase__			,	y[k]				)
														A      						=    y[k] + (
														    (step_size / 2) * (ode_func(lowerCAmelCase__			,	y[k]				) + ode_func(x + step_size			,	lowerCAmelCase__				))
														)
														x += step_size

							return y


if __name__ == "__main__":
				import doctest

				doctest.testmod()