def new_actor_wargs(self, rt, actor_type, actor_name, args=None, deploy_args=None, timeout=DEFAULT_TIMEOUT,
                        async=False, **kwargs):
        data = {'actor_type': actor_type, 'deploy_args': deploy_args}

        if args is None:
            kwargs['name'] = actor_name
            data['args'] = kwargs
        else:
            data['args'] = args

        r = self._post(rt, timeout, async, ACTOR, data)
        return self.check_response(r, key='actor_id')
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/requests/request_handler.py/RequestHandler.new_actor_wargs/original