





'''simple docstring'''

from __future__ import annotations

import unittest

from transformers import is_tf_available
from transformers.testing_utils import require_sentencepiece, require_tf, require_tokenizers, slow


if is_tf_available():
   import tensorflow as tf

   from transformers import AutoTokenizer, TFAutoModelForSeqaSeqLM
@require_tf
@require_sentencepiece
@require_tokenizers
class     __lowerCAmelCase					(   unittest.TestCase			):






       """simple docstring"""





       @slow
       def snake_case__						(							self       :		str					)   ->					Dict:

            '''simple docstring'''




            _UpperCamelCase       =	TFAutoModelForSeqaSeqLM.from_pretrained('''google/mt5-small'''					)
            _UpperCamelCase       =	AutoTokenizer.from_pretrained('''google/mt5-small'''					)

            _UpperCamelCase       =	tokenizer('''Hello there'''	,			return_tensors='''tf'''					).input_ids
            _UpperCamelCase       =	tokenizer('''Hi I am'''	,			return_tensors='''tf'''					).input_ids

            _UpperCamelCase       =	model(lowerCAmelCase__	,			labels=lowerCAmelCase__					).loss
            _UpperCamelCase       =	-tf.math.reduce_mean(lowerCAmelCase__					).numpy()

            _UpperCamelCase       =	-21.228168
            self.assertTrue(abs(mtf_score - EXPECTED_SCORE					) < 2e-4					)










'''simple docstring'''

def  a__    (    lowercase :					int, lowercase :					int				)		->		int:





     """simple docstring"""

     return x if y == 0 else greatest_common_divisor(lowercase, x % y				)







def  a__    (    lowercase :					int, lowercase :					int				)		->		int:





     """simple docstring"""

     return (x * y) // greatest_common_divisor(lowercase, lowercase				)







def  a__    (    lowercase :					int = 20				)		->		int:





     """simple docstring"""

     _UpperCamelCase       =	1
     for i in range(1, n + 1				):
          _UpperCamelCase       =	lcm(lowercase, lowercase				)
     return g


if __name__ == "__main__":
   print(F"""{solution() = }""")



