def METHOD_NAME(user, taskid):
    params = None
    if user is None or taskid is None:
        print('user, taskid need')
        return
    params = {'Action':'Flatten', 'Version':'0.0.6', 'User':user, 'UUID':taskid}
    jsonobj = query(params)
    if jsonobj['Code'] != '0':
        print("flatten fail, ecode=%s, etest=%s" % (jsonobj['Code'], errcodelist[jsonobj['Code']]))
        return
    print("flatten success. UUID=%s" % (taskid))