

from __future__ import annotations

from collections.abc import Generator




def        lowerCAmelCase(	SCREAMING_SNAKE_CASE_       )->		Generator[int, None, None]:



    """simple docstring"""






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

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




def        lowerCAmelCase(	)->		Optional[int]:



    """simple docstring"""






    UpperCamelCase_          =		4_3
    UpperCamelCase_          =		tuple(collatz_sequence(lowercase_       )       )
    print(lowercase_       )
    print(f"Collatz sequence from {n} took {len(lowercase_       )} steps."       )


if __name__ == "__main__":
 main()



from typing import Callable



def    UpperCamelCase(					lowercase_							)	->				List[str]:





  '''simple docstring'''





  def wrapper(lowercase_							):
    snake_case_       						=      function_with_docstring.__doc__
    return target_function

  return wrapper