
'''simple docstring'''

from __future__ import annotations







def 					A       ( UpperCamelCase_   :       int )   ->    list[int]:







			'''simple docstring'''



			assert (
			    isinstance(UpperCamelCase_  ,		UpperCamelCase_ ) and mask > 0
			), F"""mask needs to be positive integer, your input {mask}"""
			lowerCAmelCase__									=							[]
			lowerCAmelCase__									=							mask

			while submask:
						all_submasks.append(UpperCamelCase_ )
						lowerCAmelCase__									=							(submask - 1) & mask

			return all_submasks


if __name__ == "__main__":
		import doctest

		doctest.testmod()







'''simple docstring'''

UpperCAmelCase__				:	List[str]					=						"\n# Transformers installation\n! pip install transformers datasets evaluate\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

UpperCAmelCase__				:	Any					=						[{"type": "code", "content": INSTALL_CONTENT}]
UpperCAmelCase__				:	Union[str, Any]					=						{
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}





