




'''simple docstring'''
from __future__ import annotations
def     snake_case_  (       a__		:     list[int]   ,a__		:     int      ):



    """simple docstring"""




    __lowercase          =						{}
    for index, val in enumerate(a__      ):
        __lowercase          =						target - val
        if compl in chk_map:
            return [chk_map[compl], index]
        __lowercase          =						index
    return []


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  print(F"""{two_sum([2, 7, 11, 15], 9) = }""")










'''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 	SCREAMING_SNAKE_CASE:
       snake_case_			:					str






class 	SCREAMING_SNAKE_CASE(    unittest.TestCase					):

       def    snake_case__      (   self					)   -> Optional[int]:

           """simple docstring"""



           __lowercase          =						get_tests_dir("""fixtures/test_sentencepiece.model"""					)
           __lowercase          =						get_tests_dir("""fixtures/test_sentencepiece_with_bytefallback.model"""					)

           __lowercase          =						FakeOriginalTokenizer(vocab_file=lowerCamelCase__					)

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

           __lowercase          =						FakeOriginalTokenizer(vocab_file=lowerCamelCase__					)

           with warnings.catch_warnings(record=lowerCamelCase__					) as w:
               __lowercase          =						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					) ,		)




