



from ..utils import requires_backends


UpperCamelCase_									=   None







class       _snake_case				:






   '''simple docstring'''






   def __init__(    self:     List[str]  ,*lowerCamelCase_:     Any  ,**lowerCamelCase_:     List[str]							)	->      List[Any]:
       requires_backends(self  ,["""detectron2"""]							)






   @classmethod
   def       A__    (    cls:     Any  ,*lowerCamelCase_:     Any  ,**lowerCamelCase_:     int							)	->      str:
       requires_backends(cls  ,["""detectron2"""]							)








"""simple docstring"""


from __future__ import annotations




def      snake_case    (A_ :int ):







  '''simple docstring'''

  assert (
      isinstance(A_      ,     A_ ) and mask > 0
  ), f'''mask needs to be positive integer, your input {mask}'''
  a	:     Any							=  []
  a	:     Union[str, Any]							=  mask

  while submask:
    all_submasks.append(A_ )
    a	:     Any							=  (submask - 1) & mask

  return all_submasks


if __name__ == "__main__":
   import doctest

   doctest.testmod()




