





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_      :
   lowerCAmelCase__       =				42





class A_      (    unittest.TestCase     ):




   def _lowerCAmelCase   (self			:List[str]				)->      str:
         __A      =       get_tests_dir('''fixtures/test_sentencepiece.model'''				)
         __A      =       get_tests_dir('''fixtures/test_sentencepiece_with_bytefallback.model'''				)

         __A      =       FakeOriginalTokenizer(vocab_file=__UpperCamelCase				)

         with warnings.catch_warnings(record=__UpperCamelCase				) as w:
               __A      =       SpmConverter(__UpperCamelCase				)
         self.assertEqual(len(__UpperCamelCase				)					,     0				)

         __A      =       FakeOriginalTokenizer(vocab_file=__UpperCamelCase				)

         with warnings.catch_warnings(record=__UpperCamelCase				) as w:
               __A      =       SpmConverter(__UpperCamelCase				)
         self.assertEqual(len(__UpperCamelCase				)					,     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				)					,     )












from __future__ import annotations



def _a       (			lowerCamelCase:     list[list[int]]      ,       lowerCamelCase:     int      ,       lowerCamelCase:     int      ,       lowerCamelCase:     int | float				)			->		None:







      '''simple docstring'''






      __A     ,		__A      =       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 _a       (			)			->		None:







      '''simple docstring'''






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


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       main()





