def check_int_positive(input_param):
    """Int type judgment."""
    if isinstance(input_param, bool):
        raise TypeError('Input type must be int cannot be bool!')
    if isinstance(input_param, int):
        if input_param > 0:
            return input_param
        raise ValueError(
            'The input_param must be positive, but got input_param {}.'.
            format(input_param))
    raise TypeError('Input type must be int cannot be {}!'.format(type(
        input_param)))
