

'''simple docstring'''

def    A_  ( snake_case ):
  if a < 0:
    raise ValueError("Input value must be a positive integer" )
  elif isinstance(snake_case      ,       snake_case ):
    raise TypeError("Input value must be a 'int' type" )
  return bin(snake_case ).count("1" )


if __name__ == "__main__":
    import doctest

    doctest.testmod()









'''simple docstring'''

import warnings
from functools import wraps
from typing import Callable





def    A_  ( snake_case ):

  @wraps(snake_case )
  def _inner_fn(*snake_case      ,       **snake_case ):
    warnings.warn(
        (F'''\'{fn.__name__}\' is experimental and might be subject to breaking changes in the future.''')      ,       snake_case      ,       )
    return fn(*snake_case      ,       **snake_case )

  return _inner_fn






