def ni(i, minutes='minutes'):
    """
    Utility to normalize the the interval parameter.
    :params i:
    """
    if not isinstance(i, int):
        raise ValueError('For ib.ni minutes must be an int')
    durdict = {(1): '1 min', (2): '2 mins', (3): '3 mins', (5): '5 mins', (
        10): '10 mins', (15): '15 mins', (20): '20 mins', (30): '30 mins',
        (60): '1 hour'}
    resamp = False
    if i in durdict.keys():
        return resamp, (durdict[i], i, i)
    resamp = True
    if isinstance(i, int):
        return resamp, ('1 min', 1, i)
    return False, ('', 0, 0)
