


"""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 snake_case					:
		__UpperCamelCase							=	42





class snake_case					(     unittest.TestCase):







		def        a_       (    self					:				List[Any]						)				->  Union[str, Any]:





						'''simple docstring'''







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

						_A         =	FakeOriginalTokenizer(vocab_file=a__						)

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

						_A         =	FakeOriginalTokenizer(vocab_file=a__						)

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


import math
from decimal import Decimal, getcontext






def    a__       ( __lowercase = 400_0000      )		->		int:

				try:
								_A         =	int(__lowercase      )
				except (TypeError, ValueError):
								raise TypeError("Parameter n must be int or castable to int."      )
				if n <= 0:
								raise ValueError("Parameter n must be greater than or equal to one."      )
				_A         =	100
				_A         =	(Decimal(5      ) ** Decimal(0.5      ) + 1) / Decimal(2      )

				_A         =	(math.floor(math.log(n * (phi + 2)   ,	__lowercase      ) - 1      ) // 3) * 3 + 2
				_A         =	Decimal(round(phi ** Decimal(index + 1      )      )      ) / (phi + 2)
				_A         =	num // 2
				return int(__lowercase      )


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