

"""simple docstring"""






from __future__ import annotations
def 		A_	(   __UpperCamelCase     :				int				):
		assert (
		    isinstance(__UpperCamelCase       ,	__UpperCamelCase				) and mask > 0
		), f"""mask needs to be positive integer, your input {mask}"""
		lowercase										=							[]
		lowercase										=							mask

		while submask:
				all_submasks.append(__UpperCamelCase				)
				lowercase										=							(submask - 1) & mask

		return all_submasks


if __name__ == "__main__":
							import doctest

							doctest.testmod()


"""simple docstring"""






from typing import Callable
def 		A_	(   __UpperCamelCase     :				Callable				):

		def wrapper(__UpperCamelCase     :				Optional[Any]				):
				lowercase										=							function_with_docstring.__doc__
				return target_function

		return wrapper