def METHOD_NAME(model):
    m = open('tmp.model','w')
    m.write(model)
    m.close()
    net = caffe.Net('tmp.model',caffe.TRAIN)
    res = net.forward()
    os.remove('tmp.model')
    return res,net