'''simple docstring'''




from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCAmelCase					=logging.get_logger(__name__)




class        a__ (  UpperCAmelCase__					):
     lowerCamelCase    :	int				="timm_backbone"






     def __init__(					self						:						List[str]    ,							a						:						Tuple=None    ,							a						:						List[Any]=3    ,							a						:						Tuple=True    ,							a						:						Tuple=True    ,							a						:						Optional[Any]=None    ,							**a						:						List[str]    ,							):





         """simple docstring"""



         super().__init__(**a       )
         __lowerCamelCase            =    backbone
         __lowerCamelCase            =    num_channels
         __lowerCamelCase            =    features_only
         __lowerCamelCase            =    use_pretrained_backbone
         __lowerCamelCase            =    True
         __lowerCamelCase            =    out_indices if out_indices is not None else (-1,)

'''simple docstring'''




import numpy as np






def __lowerCAmelCase					(				UpperCamelCase__							,    UpperCamelCase__							,    UpperCamelCase__							,    UpperCamelCase__							,    UpperCamelCase__							)      ->       str:
    __lowerCamelCase            =    int(np.ceil((x_end - xa) / h							)							)
    __lowerCamelCase            =    np.zeros((n + 1,)							)
    __lowerCamelCase            =    ya
    __lowerCamelCase            =    xa

    for k in range(UpperCamelCase__							):
        __lowerCamelCase            =    f(UpperCamelCase__							,    y[k]							)
        __lowerCamelCase            =    f(x + 0.5 * h							,    y[k] + 0.5 * h * ka							)
        __lowerCamelCase            =    f(x + 0.5 * h							,    y[k] + 0.5 * h * ka							)
        __lowerCamelCase            =    f(x + h							,    y[k] + h * ka							)
        __lowerCamelCase            =    y[k] + (1 / 6) * h * (ka + 2 * ka + 2 * ka + ka)
        x += h

    return y


if __name__ == "__main__":
  import doctest

  doctest.testmod()
