def  lowercase(  UpperCamelCase_       ,				UpperCamelCase_					)		->  List[Any]:







 '''simple docstring'''
 if len(str(UpperCamelCase_					)					) == 1 or len(str(UpperCamelCase_					)					) == 1:
  return a * b

 UpperCamelCase      =			max(len(str(UpperCamelCase_					)					)       ,				len(str(UpperCamelCase_					)					)					)
 UpperCamelCase      =			ma // 2

 UpperCamelCase     ,    UpperCamelCase      =			divmod(UpperCamelCase_       ,				10**ma					)
 UpperCamelCase     ,    UpperCamelCase      =			divmod(UpperCamelCase_       ,				10**ma					)

 UpperCamelCase      =			karatsuba(UpperCamelCase_       ,				UpperCamelCase_					)
 UpperCamelCase      =			karatsuba((aa + aa)       ,				(ba + ba)					)
 UpperCamelCase      =			karatsuba(UpperCamelCase_       ,				UpperCamelCase_					)

 return (z * 10 ** (2 * ma)) + ((y - z - x) * 10 ** (ma)) + (x)





def  lowercase(  )		->  Union[str, Any]:







 '''simple docstring'''
 print(karatsuba(15463       ,				23489					)					)


if __name__ == "__main__":
     main()

import unittest

from datasets import load_dataset

from transformers import load_tool

from .test_tools_common import ToolTesterMixin
class SCREAMING_SNAKE_CASE_		(			unittest.TestCase     ,    __lowerCAmelCase		):







   def 	lowerCamelCase_  (    self	:	Optional[Any]							):





    """simple docstring"""


    UpperCamelCase      =			load_tool("""document-question-answering"""							)
    self.tool.setup()
    UpperCamelCase      =			load_tool("""document-question-answering"""      ,      remote=lowerCamelCase_							)







   def 	lowerCamelCase_  (    self	:	Optional[Any]							):





    """simple docstring"""


    UpperCamelCase      =			load_dataset("""hf-internal-testing/example-documents"""      ,      split="""test"""							)
    UpperCamelCase      =			dataset[0]["""image"""]

    UpperCamelCase      =			self.tool(lowerCamelCase_      ,      """When is the coffee break?"""							)
    self.assertEqual(lowerCamelCase_      ,      """11-14 to 11:39 a.m."""							)







   def 	lowerCamelCase_  (    self	:	Union[str, Any]							):





    """simple docstring"""


    UpperCamelCase      =			load_dataset("""hf-internal-testing/example-documents"""      ,      split="""test"""							)
    UpperCamelCase      =			dataset[0]["""image"""]

    UpperCamelCase      =			self.remote_tool(lowerCamelCase_      ,      """When is the coffee break?"""							)
    self.assertEqual(lowerCamelCase_      ,      """11-14 to 11:39 a.m."""							)







   def 	lowerCamelCase_  (    self	:	int							):





    """simple docstring"""


    UpperCamelCase      =			load_dataset("""hf-internal-testing/example-documents"""      ,      split="""test"""							)
    UpperCamelCase      =			dataset[0]["""image"""]

    self.tool(document=lowerCamelCase_      ,      question="""When is the coffee break?"""							)







   def 	lowerCamelCase_  (    self	:	Any							):





    """simple docstring"""


    UpperCamelCase      =			load_dataset("""hf-internal-testing/example-documents"""      ,      split="""test"""							)
    UpperCamelCase      =			dataset[0]["""image"""]

    UpperCamelCase      =			self.remote_tool(document=lowerCamelCase_      ,      question="""When is the coffee break?"""							)
    self.assertEqual(lowerCamelCase_      ,      """11-14 to 11:39 a.m."""							)
