
"""simple docstring"""
import warnings

from ...utils import logging
from .image_processing_mobilenet_va import MobileNetVaImageProcessor


_a   :      Optional[Any]       =				logging.get_logger(__name__)






class   _UpperCAmelCase					(       _snake_case):
    def __init__(     self    ,     *snake_case_    ,     **snake_case_  ):
      warnings.warn(
          "The class MobileNetV2FeatureExtractor is deprecated and will be removed in version 5 of Transformers."
          " Please use MobileNetV2ImageProcessor instead."    ,     snake_case_    ,     )
      super().__init__(*snake_case_    ,     **snake_case_  )



"""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)}""")



