def check_bool(input_param, param_name):
    """Bool type judgment."""
    if isinstance(input_param, bool):
        return input_param
    raise TypeError("Parameter {}: input type must be bool!".format(param_name))