
"""simple docstring"""




import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


A__   :						Union[str, Any] 							=     logging.get_logger(__name__)







class 	_lowercase    (							lowerCAmelCase_					):


     '''simple docstring'''





     def __init__(   self			,      *__UpperCamelCase			,      **__UpperCamelCase	)->       None:
          warnings.warn(
              "The class LayoutLMv3FeatureExtractor is deprecated and will be removed in version 5 of Transformers."
              " Please use LayoutLMv3ImageProcessor instead."			,      __UpperCamelCase			,      )
          super().__init__(*__UpperCamelCase			,      **__UpperCamelCase	)





"""simple docstring"""




def 				a__			(					lowerCAmelCase						:							int		):






     '''simple docstring'''
     if number != int(lowerCAmelCase		):
          raise ValueError("factorial() only accepts integral values"		)
     if number < 0:
          raise ValueError("factorial() not defined for negative values"		)
     UpperCAmelCase__				:			int							=    1
     for i in range(1							,     number + 1		):
          value *= i
     return value



def 				a__			(					lowerCAmelCase						:							int		):






     '''simple docstring'''
     if not isinstance(lowerCAmelCase							,     lowerCAmelCase		):
          raise ValueError("factorial() only accepts integral values"		)
     if n < 0:
          raise ValueError("factorial() not defined for negative values"		)
     return 1 if n == 0 or n == 1 else n * factorial(n - 1		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()

    A__   :						Any 							=     int(input("""Enter a positive integer: """).strip() or 0)
    print(f"""factorial{n} is {factorial(n)}""")



