

from collections.abc import Callable

import numpy as np

def 						UpperCamelCase (lowercase_:			Callable   ,				lowercase_:			float   ,				lowercase_:			float   ,				lowercase_:			float   ,				lowercase_:			float )					->				np.array:
	A__							:   List[str]					       =		int(np.ceil((x_end - xa) / step_size ) )
	A__							:   Union[str, Any]					       =		np.zeros((n + 1,) )
	A__							:   Dict					       =		ya
	A__							:   Optional[int]					       =		xa

	for k in range(lowercase_ ):
		A__							:   Tuple					       =		y[k] + step_size * ode_func(lowercase_   ,				y[k] )
		A__							:   Tuple					       =		y[k] + (
		    (step_size / 2) * (ode_func(lowercase_   ,				y[k] ) + ode_func(x + step_size   ,				lowercase_ ))
		)
		x += step_size

	return y


if __name__ == "__main__":
	import doctest

	doctest.testmod()






from argparse import ArgumentParser

from . import BaseTransformersCLICommand

def 						UpperCamelCase (lowercase_:			int )					->				str:
	return DownloadCommand(args.model   ,				args.cache_dir   ,				args.force   ,				args.trust_remote_code )



class    _a						(__magic_name__    ):


					'''simple docstring'''






					@staticmethod
					def   __A      (			A__      ):
						A__							:   Any					       =		parser.add_parser("""download"""      )
						download_parser.add_argument(
						    """--cache-dir"""   ,	type=A__   ,	default=A__   ,	help="""Path to location to store the models"""      )
						download_parser.add_argument(
						    """--force"""   ,	action="""store_true"""   ,	help="""Force the model to be download even if already in cache-dir"""      )
						download_parser.add_argument(
						    """--trust-remote-code"""   ,	action="""store_true"""   ,	help="""Whether or not to allow for custom models defined on the Hub in their own modeling files. Use only if you've reviewed the code as it will execute on your local machine"""   ,	)
						download_parser.add_argument("""model"""   ,	type=A__   ,	help="""Name of the model to download"""      )
						download_parser.set_defaults(func=A__      )






					def __init__(			self   ,	A__   ,	A__   ,	A__   ,	A__      ):
						A__							:   Union[str, Any]					       =		model
						A__							:   Dict					       =		cache
						A__							:   str					       =		force
						A__							:   Tuple					       =		trust_remote_code






					def   __A      (			self      ):
						from ..models.auto import AutoModel, AutoTokenizer

						AutoModel.from_pretrained(
						    self._model   ,	cache_dir=self._cache   ,	force_download=self._force   ,	trust_remote_code=self._trust_remote_code      )
						AutoTokenizer.from_pretrained(
						    self._model   ,	cache_dir=self._cache   ,	force_download=self._force   ,	trust_remote_code=self._trust_remote_code      )



