def compose_tfms(x, tfms, is_enc=True, reverse=False, **kwargs):
    """Apply all `func_nm` attribute of `tfms` on `x`, maybe in `reverse` order"""
    if reverse:
        tfms = reversed(tfms)
    for f in tfms:
        if not is_enc:
            f = f.decode
        x = f(x, **kwargs)
    return x
