def query_task(self, *ids):
    if ((len(ids) == 1) and isinstance(ids[0], (list, tuple))):
        ids = ids[0]
    return self._request('query_task', ids=ids)
def query_task(self, *ids):
    if ((len(ids) == 1) and isinstance(ids[0], (list, tuple))):
        ids = ids[0]
    return self._request('query_task', ids=ids)