def autoformat_padding(padding):
    if padding in ['same', 'SAME', 'valid', 'VALID']:
        return str.upper(padding)
    else:
        raise Exception("Unknow padding! Accepted values: 'same', 'valid'.")
dataset/ETHPy150Open tflearn/tflearn/tflearn/utils.py/autoformat_padding/original