"""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   UpperCAmelCase_	:
    snake_case_											=      42
class   UpperCAmelCase_	(				unittest.TestCase   ):
    def 		_lowerCamelCase      (	self			:       List[str]		)						->    str:
       _lowercase							     =       get_tests_dir("fixtures/test_sentencepiece.model"		)
       _lowercase							     =       get_tests_dir("fixtures/test_sentencepiece_with_bytefallback.model"		)

       _lowercase							     =       FakeOriginalTokenizer(vocab_file=_lowercase		)

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

       _lowercase							     =       FakeOriginalTokenizer(vocab_file=_lowercase		)

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


__UpperCamelCase       :    List[Any]         =		"\n# Diffusers installation\n! pip install diffusers transformers datasets accelerate\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/diffusers.git\n"

__UpperCamelCase       :    Any         =		[{"type": "code", "content": INSTALL_CONTENT}]