'''simple docstring'''




import warnings

from ...utils import logging
from .image_processing_maskformer import MaskFormerImageProcessor


__SCREAMING_SNAKE_CASE	:					List[str]					=  logging.get_logger(__name__)

class      lowerCamelCase_     (_UpperCAmelCase   ):
      '''simple docstring'''

      def __init__(	self						:    Any						, *A						:    List[str]						, **A						:    Any	):
             warnings.warn(
                 "The class MaskFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
                 " Please use MaskFormerImageProcessor instead."						, lowerCAmelCase__						, )
             super().__init__(*lowerCAmelCase__						, **lowerCAmelCase__	)


'''simple docstring'''




from __future__ import annotations

from collections.abc import Generator

def      UpperCamelCase_							( _UpperCAmelCase  :				int   )   ->   Generator[int, None, None]:


       """simple docstring"""







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

       yield n
       while n != 1:
              if n % 2 == 0:
                     n //= 2
              else:
                     _UpperCAmelCase					:  Optional[Any]											=   3 * n + 1
              yield n

def      UpperCamelCase_							( )   ->   Any:


       """simple docstring"""







       _UpperCAmelCase					:  str											=   43
       _UpperCAmelCase					:  Optional[int]											=   tuple(collatz_sequence(_UpperCAmelCase   )   )
       print(_UpperCAmelCase   )
       print(F"""Collatz sequence from {n} took {len(_UpperCAmelCase   )} steps."""   )


if __name__ == "__main__":
  main()

