code: 
  
  
  '''simple docstring'''
  
  
  
  import unittest
  from dataclasses import dataclass
  from typing import Optional
  
  from transformers.utils import ModelOutput
  
  
  
  
  
  @dataclass
  class 							__UpperCamelCase       (	lowerCAmelCase_      ):
  	A_			    =					42
  	A_			    =					None
  	A_			    =					None
  
  
  
  
  
  class 							__UpperCamelCase       (	unittest.TestCase      ):
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : str      					=						ModelOutputTest(a=30							)
  						self.assertEqual(x.a		,       30							)
  						self.assertIsNone(x.b							)
  						self.assertIsNone(x.c							)
  						with self.assertRaises(UpperCAmelCase_							):
  											__a    : Optional[Any]      					=						x.d
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : Any      					=						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)							)
  
  						__a    : List[str]      					=						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    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : Dict      					=						ModelOutputTest(a=30		,       b=10							)
  						self.assertEqual(x['a']		,       30							)
  						self.assertEqual(x['b']		,       10							)
  						with self.assertRaises(UpperCAmelCase_							):
  											__a    : str      					=						x['c']
  
  						__a    : str      					=						ModelOutputTest(a=30		,       c=10							)
  						self.assertEqual(x['a']		,       30							)
  						self.assertEqual(x['c']		,       10							)
  						with self.assertRaises(UpperCAmelCase_							):
  											__a    : List[str]      					=						x['b']
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : Union[str, Any]      					=						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(UpperCAmelCase_							)		,       ['a']							)
  
  						__a    : Dict      					=						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(UpperCAmelCase_							)		,       ['a', 'b']							)
  
  						__a    : List[str]      					=						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(UpperCAmelCase_							)		,       ['a', 'c']							)
  
  						with self.assertRaises(UpperCAmelCase_							):
  											__a    : Any      					=						x.update({'d': 20}							)
  						with self.assertRaises(UpperCAmelCase_							):
  											del x["a"]
  						with self.assertRaises(UpperCAmelCase_							):
  											__a    : Dict      					=						x.pop('a'							)
  						with self.assertRaises(UpperCAmelCase_							):
  											__a    : Optional[Any]      					=						x.setdefault('d'		,       32							)
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : Union[str, Any]      					=						ModelOutputTest(a=30							)
  						__a    : Dict      					=						10
  						self.assertEqual(x.a		,       10							)
  						self.assertEqual(x['a']		,       10							)
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : str      					=						ModelOutputTest(a=30							)
  						__a    : Optional[int]      					=						10
  						self.assertEqual(x.a		,       10							)
  						self.assertEqual(x['a']		,       10							)
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : int      					=						ModelOutputTest({'a': 30, 'b': 10}							)
  						self.assertEqual(list(x.keys()							)		,       ['a', 'b']							)
  						self.assertEqual(x.a		,       30							)
  						self.assertEqual(x.b		,       10							)
  
  
  
  
  
  	def    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : int      					=						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(UpperCAmelCase_							):
  											__a    : List[str]      					=						ModelOutputTest([('a', 30), (10, 10)]							)
  
  						__a    : Dict      					=						ModelOutputTest(a=(30, 30)							)
  						self.assertEqual(list(x.keys()							)		,       ['a']							)
  						self.assertEqual(x.a		,       (30, 30)							)
  
  
  
  
style_context: 
  
  
  '''simple docstring'''
  
  
  
  import itertools
  
  
  
  
  
  
  def 						lowerCamelCase							(_SCREAMING_SNAKE_CASE   :     int = 1_000_000     ):
  					__a    : str      					=						[1]
  
  					for i in itertools.count(len(_SCREAMING_SNAKE_CASE     )     ):
  										__a    : Dict      					=						0
  										for j in itertools.count(1     ):
  															__a    : int      					=						-1 if j % 2 == 0 else +1
  															__a    : Optional[int]      					=						(j * j * 3 - j) // 2
  															if index > i:
  																				break
  															item += partitions[i - index] * sign
  															item %= number
  															index += j
  															if index > i:
  																				break
  															item += partitions[i - index] * sign
  															item %= number
  
  										if item == 0:
  															return i
  										partitions.append(_SCREAMING_SNAKE_CASE     )
  
  					return 0
  
  
  if __name__ == "__main__":
  	import doctest
  
  	doctest.testmod()
  
  	print(f'''{solution() = }''')
  
  
  
  