




def   A   (   _SCREAMING_SNAKE_CASE					)			->				int:
       if not isinstance(_SCREAMING_SNAKE_CASE				,_SCREAMING_SNAKE_CASE					):
              raise ValueError("double_factorial() only accepts integral values"					)
       if num < 0:
              raise ValueError("double_factorial() not defined for negative values"					)
       lowerCamelCase     :   List[str]    				=      1
       for i in range(_SCREAMING_SNAKE_CASE				,0				,-2					):
              value *= i
       return value


if __name__ == "__main__":
       import doctest

       doctest.testmod()












from __future__ import annotations

def   A   (   _SCREAMING_SNAKE_CASE					)			->				list[int]:
       assert (
           isinstance(_SCREAMING_SNAKE_CASE				,_SCREAMING_SNAKE_CASE					) and mask > 0
       ), f'''mask needs to be positive integer, your input {mask}'''
       lowerCamelCase     :   str    				=      []
       lowerCamelCase     :   Any    				=      mask

       while submask:
              all_submasks.append(_SCREAMING_SNAKE_CASE					)
              lowerCamelCase     :   Union[str, Any]    				=      (submask - 1) & mask

       return all_submasks


if __name__ == "__main__":
       import doctest

       doctest.testmod()






