code: 
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available
  
  
  A_    :					List[str]             ={}
  
  try:
   if not is_sentencepiece_available():
    raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
   pass
  else:
   A_    :					Optional[int]             =["""BarthezTokenizer"""]
  
  try:
   if not is_tokenizers_available():
    raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
   pass
  else:
   A_    :					Any             =["""BarthezTokenizerFast"""]
  
  
  if TYPE_CHECKING:
   try:
    if not is_sentencepiece_available():
     raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
    pass
   else:
    from .tokenization_barthez import BarthezTokenizer
  
   try:
    if not is_tokenizers_available():
     raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
    pass
   else:
    from .tokenization_barthez_fast import BarthezTokenizerFast
  
  else:
   import sys
  
   A_    :					Optional[Any]             =_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)
style_context: 
  
  
  from collections.abc import Callable
  
  A_    :					Any             =Callable[[float], float]  # type alias for a real -> real function
  
  
  
  
  def   lowerCamelCase_       (					UpperCAmelCase__       ,    UpperCAmelCase__       ,    UpperCAmelCase__       ,    ):
  
  
  
  						"""simple docstring"""
  
  
  
  
  						a_					=		float(UpperCAmelCase__      )
  						while True:
  												try:
  																		a_					=		prev_guess - function(UpperCAmelCase__      ) / derivative(UpperCAmelCase__      )
  												except ZeroDivisionError:
  																		raise ZeroDivisionError("""Could not find root"""      ) from None
  												if abs(prev_guess - next_guess      ) < 10**-5:
  																		return next_guess
  												a_					=		next_guess
  
  
  
  
  def   lowerCamelCase_       (					UpperCAmelCase__      ):
  
  
  
  						"""simple docstring"""
  
  
  
  
  						return (x**3) - (2 * x) - 5
  
  
  
  
  def   lowerCamelCase_       (					UpperCAmelCase__      ):
  
  
  
  						"""simple docstring"""
  
  
  
  
  						return 3 * (x**2) - 2
  
  
  if __name__ == "__main__":
  	print(newton(f, fa, 3))