def isbool(value):
    """
    check if the value is bool

    Parameters
    ----------
    value : any
        can accept any value to be checked.

    Returns
    -------
    bool
        True if the value is 1 ,0 , True or False.
        Flase for anything else.

    """
    temp=str(value).lower()
    if temp == 'true' or temp == 'false' or temp == '1' or temp =='0':
        return True
    else:
        return False