def get_task_args(self):
        try:
            body = self.request.body
            options = json_decode(body) if body else {}
        except __HOLE__ as e:
            raise HTTPError(400, str(e))
        args = options.pop('args', [])
        kwargs = options.pop('kwargs', {})

        if not isinstance(args, (list, tuple)):
            raise HTTPError(400, 'args must be an array')

        return args, kwargs, options
dataset/ETHPy150Open mher/flower/flower/api/tasks.py/BaseTaskHandler.get_task_args