





"""simple docstring"""




import unittest
import warnings
from dataclasses import dataclass

from transformers.convert_slow_tokenizer import SpmConverter
from transformers.testing_utils import get_tests_dir




@dataclass
class 					_a		:
				UpperCamelCase								=       42




class 					_a		( unittest.TestCase							):






				def 							snake_case      (					self						:       List[Any]				)      -> str:




										'''simple docstring'''



										_UpperCamelCase     :   str      =       get_tests_dir('''fixtures/test_sentencepiece.model'''				)
										_UpperCamelCase     :   Any      =       get_tests_dir('''fixtures/test_sentencepiece_with_bytefallback.model'''				)

										_UpperCamelCase     :   Tuple      =       FakeOriginalTokenizer(vocab_file=lowerCAmelCase__				)

										with warnings.catch_warnings(record=lowerCAmelCase__				) as w:
																_UpperCamelCase     :   int      =       SpmConverter(lowerCAmelCase__				)
										self.assertEqual(len(lowerCAmelCase__				),					0				)

										_UpperCamelCase     :   Optional[Any]      =       FakeOriginalTokenizer(vocab_file=lowerCAmelCase__				)

										with warnings.catch_warnings(record=lowerCAmelCase__				) as w:
																_UpperCamelCase     :   int      =       SpmConverter(lowerCAmelCase__				)
										self.assertEqual(len(lowerCAmelCase__				),					1				)

										self.assertIn(
										    '''The sentencepiece tokenizer that you are converting to a fast tokenizer uses the byte fallback option'''
										    ''' which is not implemented in the fast tokenizers.''',					str(w[0].message				),					)






"""simple docstring"""




from __future__ import annotations



def 						UpperCAmelCase__ (					A__						,     A__						,     A__						,     A__ )   ->   None:




   """simple docstring"""
   lowerCamelCase__       ,							lowerCamelCase__						       =      m - 1, 0
   while i >= 0 and j < n:
      if key == mat[i][j]:
         print(f'Key {key} found at row- {i + 1} column- {j + 1}' )
         return
      if key < mat[i][j]:
         i -= 1
      else:
         j += 1
   print(f'Key {key} not found' )



def 						UpperCAmelCase__ (					)   ->   None:




   """simple docstring"""
   lowerCamelCase__						       =      [[2, 5, 7], [4, 8, 13], [9, 11, 15], [12, 17, 20]]
   lowerCamelCase__						       =      int(input("Enter the element to be searched:" ) )
   print(A__ )
   search_in_a_sorted_matrix(A__						,     len(A__ )						,     len(mat[0] )						,     A__ )


if __name__ == "__main__":
     import doctest

     doctest.testmod()
     main()




