"""simple docstring"""




import warnings

from ...utils import logging
from .image_processing_conditional_detr import ConditionalDetrImageProcessor


lowerCAmelCase__					:       Tuple		=       logging.get_logger(__name__)





class 			__snake_case  (      A__     ):




					def __init__(       self   ,	*__UpperCamelCase   ,	**__UpperCamelCase		)					->  None:



									'''simple docstring'''







									warnings.warn(
									    'The class ConditionalDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
									    ' Please use ConditionalDetrImageProcessor instead.'   ,	__snake_case   ,	)
									super().__init__(*__snake_case   ,	**__snake_case		)



def 			UpperCamelCase__						(    A__   )       -> int:
				if number != int(A__   ):
								raise ValueError('factorial() only accepts integral values'   )
				if number < 0:
								raise ValueError('factorial() not defined for negative values'   )
				snake_case__ :     Optional[Any] 							=				1
				for i in range(1      ,			number + 1   ):
								value *= i
				return value
def 			UpperCamelCase__						(    A__   )       -> int:
				if not isinstance(A__      ,			A__   ):
								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()

				lowerCAmelCase__					:       Any		=       int(input('''Enter a positive integer: ''').strip() or 0)
				print(F'''factorial{n} is {factorial(n)}''')


