
"""simple docstring"""





def   A__ ( A__		)		->			float:





   '''simple docstring'''




   return 10 - x * x







def   A__ ( A__      ,      A__		)		->			float:





   '''simple docstring'''




   if equation(UpperCAmelCase__		) * equation(UpperCAmelCase__		) >= 0:
      raise ValueError("Wrong space!"		)

   _UpperCAmelCase         =      a
   while (b - a) >= 0.01:
      # Find middle point
      _UpperCAmelCase         =      (a + b) / 2
      # Check if middle point is root
      if equation(UpperCAmelCase__		) == 0.0:
         break
      # Decide the side to repeat the steps
      if equation(UpperCAmelCase__		) * equation(UpperCAmelCase__		) < 0:
         _UpperCAmelCase         =      c
      else:
         _UpperCAmelCase         =      c
   return c


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 print(bisection(-2, 5))
 print(bisection(0, 6))



import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer



def   __lowerCAmelCase    (				UpperCAmelCase__					:   str      ,					UpperCAmelCase__					:   str      ,					**UpperCAmelCase__					:   List[str]							)	->     Tuple:
							lowerCamelCase_					=       AutoConfig.from_pretrained(UpperCAmelCase__      ,					**UpperCAmelCase__							)
							lowerCamelCase_					=       AutoModelForSeqaSeqLM.from_config(UpperCAmelCase__							)
							model.save_pretrained(UpperCAmelCase__							)
							AutoTokenizer.from_pretrained(UpperCAmelCase__							).save_pretrained(UpperCAmelCase__							)
							return model


if __name__ == "__main__":
		fire.Fire(save_randomly_initialized_version)





