"""simple docstring"""


import warnings

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


a							=logging.get_logger(__name__)






class        __UpperCAmelCase						(     _UpperCAmelCase     ):

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



"""simple docstring"""


from __future__ import annotations

from collections.abc import Generator





def       lowerCamelCase_			( __lowerCAmelCase    )							-> Generator[int, None, None]:




						'''simple docstring'''



						if not isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ) or n < 1:
												raise Exception("Sequence only defined for positive integers"    )

						yield n
						while n != 1:
												if n % 2 == 0:
																		n //= 2
												else:
																		lowerCamelCase__ =3 * n + 1
												yield n





def       lowerCamelCase_			( )							-> List[str]:




						'''simple docstring'''



						lowerCamelCase__ =43
						lowerCamelCase__ =tuple(collatz_sequence(__lowerCAmelCase    )    )
						print(__lowerCAmelCase    )
						print(F'''Collatz sequence from {n} took {len(__lowerCAmelCase    )} steps.'''    )


if __name__ == "__main__":
	main()


