



import warnings

from ...utils import logging
from .image_processing_mobilevit import MobileViTImageProcessor


__snake_case     :Optional[Any]			       =logging.get_logger(__name__)



class        lowerCAmelCase__					(  _lowerCamelCase       ):


				def __init__(							self      :  Optional[int]						, *__UpperCamelCase      :  List[Any]						, **__UpperCamelCase      :  Any       )		->     None:
											warnings.warn(
											    'The class MobileViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
											    ' Please use MobileViTImageProcessor instead.'						, __UpperCamelCase						, )
											super().__init__(*__UpperCamelCase						, **__UpperCamelCase       )




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()