

a_						     =    '\n# Installazione di Transformers\n! pip install transformers datasets\n# Per installare dalla fonte invece dell\'ultima versione rilasciata, commenta il comando sopra e\n# rimuovi la modalità commento al comando seguente.\n# ! pip install git+https://github.com/huggingface/transformers.git\n'

a_						     =    [{'type': 'code', 'content': INSTALL_CONTENT}]
a_						     =    {
    '{processor_class}': 'FakeProcessorClass',
    '{model_class}': 'FakeModelClass',
    '{object_class}': 'FakeObjectClass',
}


import os
import tempfile
import unittest

from transformers.models.marian.convert_marian_tatoeba_to_pytorch import DEFAULT_REPO, TatoebaConverter
from transformers.testing_utils import slow
from transformers.utils import cached_property






@unittest.skipUnless(os.path.exists(__A   )							,	'Tatoeba directory does not exist.'   )
class _UpperCamelCase							(							unittest.TestCase   ):
			'''simple docstring'''







			@cached_property
			def 							__UpperCamelCase (			self							: Any	)							->       str:

				"""simple docstring"""

				SCREAMING_SNAKE_CASE   :      Optional[Any]				     =       tempfile.mkdtemp()
				return TatoebaConverter(save_dir=a	)
			@slow
			def 							__UpperCamelCase (			self							: List[Any]	)							->       int:

				"""simple docstring"""

				self.resolver.convert_models(["heb-eng"]	)






			@slow
			def 							__UpperCamelCase (			self							: Optional[int]	)							->       Dict:

				"""simple docstring"""

				SCREAMING_SNAKE_CASE     ,SCREAMING_SNAKE_CASE   :      Optional[Any]				     =       self.resolver.write_model_card("opus-mt-he-en"      ,      dry_run=a	)
				assert mmeta["long_pair"] == "heb-eng"