code: 
  
  
  
  
  '''simple docstring'''
  
  
  
  
  
  import unittest
  
  from datasets import load_dataset
  
  from transformers import load_tool
  
  from .test_tools_common import ToolTesterMixin
  
  
  class 							_lowerCAmelCase		(     unittest.TestCase  ,   UpperCamelCase_	):
  
  
  
  
  				def     __a		( self							)    ->      Tuple:
  											SCREAMING_SNAKE_CASE			: Optional[int]	     =load_tool('''document-question-answering'''							)
  											self.tool.setup()
  											SCREAMING_SNAKE_CASE			: str	     =load_tool('''document-question-answering'''		,		remote=__UpperCamelCase							)
  
  
  
  
  				def     __a		( self							)    ->      Tuple:
  											SCREAMING_SNAKE_CASE			: Dict	     =load_dataset('''hf-internal-testing/example-documents'''		,		split='''test'''							)
  											SCREAMING_SNAKE_CASE			: List[str]	     =dataset[0]['''image''']
  
  											SCREAMING_SNAKE_CASE			: Tuple	     =self.tool(__UpperCamelCase		,		'''When is the coffee break?'''							)
  											self.assertEqual(__UpperCamelCase		,		'''11-14 to 11:39 a.m.'''							)
  
  
  
  
  				def     __a		( self							)    ->      List[str]:
  											SCREAMING_SNAKE_CASE			: str	     =load_dataset('''hf-internal-testing/example-documents'''		,		split='''test'''							)
  											SCREAMING_SNAKE_CASE			: str	     =dataset[0]['''image''']
  
  											SCREAMING_SNAKE_CASE			: Tuple	     =self.remote_tool(__UpperCamelCase		,		'''When is the coffee break?'''							)
  											self.assertEqual(__UpperCamelCase		,		'''11-14 to 11:39 a.m.'''							)
  
  
  
  
  				def     __a		( self							)    ->      Tuple:
  											SCREAMING_SNAKE_CASE			: Tuple	     =load_dataset('''hf-internal-testing/example-documents'''		,		split='''test'''							)
  											SCREAMING_SNAKE_CASE			: Optional[int]	     =dataset[0]['''image''']
  
  											self.tool(document=__UpperCamelCase		,		question='''When is the coffee break?'''							)
  
  
  
  
  
  
  
  				def     __a		( self							)    ->      Optional[int]:
  											SCREAMING_SNAKE_CASE			: Optional[int]	     =load_dataset('''hf-internal-testing/example-documents'''		,		split='''test'''							)
  											SCREAMING_SNAKE_CASE			: List[Any]	     =dataset[0]['''image''']
  
  											SCREAMING_SNAKE_CASE			: Tuple	     =self.remote_tool(document=__UpperCamelCase		,		question='''When is the coffee break?'''							)
  											self.assertEqual(__UpperCamelCase		,		'''11-14 to 11:39 a.m.'''							)
  
  
  
  
  
  
  
style_context: 
  
  
  
  
  import sys
  
  sys.set_int_max_str_digits(0)  # type: ignore
  def 						lowerCAmelCase_       (	__a )       ->			bool:
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  
  							SCREAMING_SNAKE_CASE			: Optional[int]	     =[0] * 11
  							SCREAMING_SNAKE_CASE			: str	     =[0] * 11
  
  							# mark last 9 numbers
  							for _ in range(9 ):
  														SCREAMING_SNAKE_CASE			: List[str]	     =1
  														SCREAMING_SNAKE_CASE			: List[Any]	     =number // 10
  							# flag
  							SCREAMING_SNAKE_CASE			: str	     =True
  
  							# check last 9 numbers for pandigitality
  
  							for x in range(9 ):
  														if not check_last[x + 1]:
  																					SCREAMING_SNAKE_CASE			: Dict	     =False
  							if not f:
  														return f
  
  							# mark first 9 numbers
  							SCREAMING_SNAKE_CASE			: Dict	     =int(str(__a )[:9] )
  
  							for _ in range(9 ):
  														SCREAMING_SNAKE_CASE			: Union[str, Any]	     =1
  														SCREAMING_SNAKE_CASE			: Optional[int]	     =number // 10
  
  							# check first 9 numbers for pandigitality
  
  							for x in range(9 ):
  														if not check_front[x + 1]:
  																					SCREAMING_SNAKE_CASE			: Any	     =False
  							return f
  def 						lowerCAmelCase_       (	__a )       ->			bool:
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  
  							SCREAMING_SNAKE_CASE			: Any	     =[0] * 11
  
  							# mark last 9 numbers
  							for _ in range(9 ):
  														SCREAMING_SNAKE_CASE			: int	     =1
  														SCREAMING_SNAKE_CASE			: Optional[Any]	     =number // 10
  							# flag
  							SCREAMING_SNAKE_CASE			: Any	     =True
  
  							# check last 9 numbers for pandigitality
  
  							for x in range(9 ):
  														if not check_last[x + 1]:
  																					SCREAMING_SNAKE_CASE			: Any	     =False
  							return f
  def 						lowerCAmelCase_       (	)       ->			int:
  
  
  
  
  
  							"""simple docstring"""
  
  
  
  
  
  							SCREAMING_SNAKE_CASE			: int	     =1
  							SCREAMING_SNAKE_CASE			: List[Any]	     =1
  							SCREAMING_SNAKE_CASE			: List[Any]	     =2
  							# temporary Fibonacci numbers
  
  							SCREAMING_SNAKE_CASE			: Dict	     =1
  							SCREAMING_SNAKE_CASE			: Dict	     =1
  							SCREAMING_SNAKE_CASE			: Tuple	     =2
  							# temporary Fibonacci numbers mod 1e9
  
  							# mod m=1e9, done for fast optimisation
  							SCREAMING_SNAKE_CASE			: str	     =[0] * 1000000
  							SCREAMING_SNAKE_CASE			: Any	     =1000000000
  
  							for x in range(1000000 ):
  														SCREAMING_SNAKE_CASE			: Optional[int]	     =(aa + ba) % m
  														SCREAMING_SNAKE_CASE			: int	     =ba % m
  														SCREAMING_SNAKE_CASE			: Optional[int]	     =ca % m
  														if checka(__a ):
  																					SCREAMING_SNAKE_CASE			: List[Any]	     =1
  
  							for x in range(1000000 ):
  														SCREAMING_SNAKE_CASE			: Tuple	     =a + b
  														SCREAMING_SNAKE_CASE			: Union[str, Any]	     =b
  														SCREAMING_SNAKE_CASE			: List[str]	     =c
  														# perform check only if in tocheck
  														if tocheck[x + 3] and check(__a ):
  																					return x + 3  # first 2 already done
  							return -1
  
  
  if __name__ == "__main__":
  							print(F'''{solution() = }''')
  
  
  
  
  
  
  