def computeInterestingness(IC, DL, **kwargs):
    """function to compute interestingness of a pattern

    Args:
        IC (float): Information Content
        DL (float): Description Length

    kwargs:
        mode (int): 1 if I = IC/DL, 2 if I = IC - DL, default is 1

    Returns:
        float: Interestingness score
    """
    mode = 1
    if 'mode' in kwargs:
        mode = kwargs['mode']
    I = 0.0
    if mode == 1:
        I = IC / DL
    elif mode == 2:
        I = IC - DL
    else:
        assert mode < 3, "Incorrect mode"
    return I