def standarize_data(data):
    if data is None: return None
    if type(data) in [tuple, list]:
        return [np.asarray(x) for x in data]
    if type(data) is dict:
        return data
    return [np.asarray(data)]
dataset/ETHPy150Open tflearn/tflearn/tflearn/utils.py/standarize_data/original