




'''simple docstring'''







import unittest
from dataclasses import dataclass
from typing import Optional

from transformers.utils import ModelOutput





@dataclass
class 	lowerCamelCase_				(			_lowercase				):




					'''simple docstring'''






					lowercase__       =					42
					lowercase__       =					None
					lowercase__       =					None





class 	lowerCamelCase_				(			unittest.TestCase				):




					'''simple docstring'''






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest(a=30					)
							self.assertEqual(x.a,    30					)
							self.assertIsNone(x.b					)
							self.assertIsNone(x.c					)
							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			x.d






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest(a=30,    b=10					)
							self.assertEqual(x[0],    30					)
							self.assertEqual(x[1],    10					)
							self.assertEqual(x[:2],    (30, 10)					)
							self.assertEqual(x[:],    (30, 10)					)

							_snake_case      			=			ModelOutputTest(a=30,    c=10					)
							self.assertEqual(x[0],    30					)
							self.assertEqual(x[1],    10					)
							self.assertEqual(x[:2],    (30, 10)					)
							self.assertEqual(x[:],    (30, 10)					)






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest(a=30,    b=10					)
							self.assertEqual(x["a"],    30					)
							self.assertEqual(x["b"],    10					)
							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			x['''c''']

							_snake_case      			=			ModelOutputTest(a=30,    c=10					)
							self.assertEqual(x["a"],    30					)
							self.assertEqual(x["c"],    10					)
							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			x['''b''']






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest(a=30					)
							self.assertEqual(list(x.keys()					),    ["a"]					)
							self.assertEqual(list(x.values()					),    [30]					)
							self.assertEqual(list(x.items()					),    [("a", 30)]					)
							self.assertEqual(list(_SCREAMING_SNAKE_CASE					),    ["a"]					)

							_snake_case      			=			ModelOutputTest(a=30,    b=10					)
							self.assertEqual(list(x.keys()					),    ["a", "b"]					)
							self.assertEqual(list(x.values()					),    [30, 10]					)
							self.assertEqual(list(x.items()					),    [("a", 30), ("b", 10)]					)
							self.assertEqual(list(_SCREAMING_SNAKE_CASE					),    ["a", "b"]					)

							_snake_case      			=			ModelOutputTest(a=30,    c=10					)
							self.assertEqual(list(x.keys()					),    ["a", "c"]					)
							self.assertEqual(list(x.values()					),    [30, 10]					)
							self.assertEqual(list(x.items()					),    [("a", 30), ("c", 10)]					)
							self.assertEqual(list(_SCREAMING_SNAKE_CASE					),    ["a", "c"]					)

							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			x.update({"d": 20}					)
							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									del x["a"]
							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			x.pop("a"					)
							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			x.setdefault("d",    32					)






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest(a=30					)
							_snake_case      			=			10
							self.assertEqual(x.a,    10					)
							self.assertEqual(x["a"],    10					)






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest(a=30					)
							_snake_case      			=			10
							self.assertEqual(x.a,    10					)
							self.assertEqual(x["a"],    10					)






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest({"a": 30, "b": 10}					)
							self.assertEqual(list(x.keys()					),    ["a", "b"]					)
							self.assertEqual(x.a,    30					)
							self.assertEqual(x.b,    10					)






					def 							__SCREAMING_SNAKE_CASE      (       self					):
							_snake_case      			=			ModelOutputTest([("a", 30), ("b", 10)]					)
							self.assertEqual(list(x.keys()					),    ["a", "b"]					)
							self.assertEqual(x.a,    30					)
							self.assertEqual(x.b,    10					)

							with self.assertRaises(_SCREAMING_SNAKE_CASE					):
									_snake_case      			=			ModelOutputTest([("a", 30), (10, 10)]					)

							_snake_case      			=			ModelOutputTest(a=(30, 30)					)
							self.assertEqual(list(x.keys()					),    ["a"]					)
							self.assertEqual(x.a,    (30, 30)					)









from typing import TYPE_CHECKING

from ...utils import _LazyModule


lowerCamelCase		=						{'''tokenization_phobert''': ['''PhobertTokenizer''']}


if TYPE_CHECKING:
		from .tokenization_phobert import PhobertTokenizer

else:
		import sys

		lowerCamelCase		=						_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)




