def __init__(self, resource_id, *args, **kwargs):
        assert resource_id, "resource_id must be set for an agent"
        self.resource_id = resource_id

        if not 'name' in kwargs:
            process_id = self._get_agent_process_id(self.resource_id)
            if process_id:
                kwargs['name'] = process_id
                log.debug("Use agent process %s for resource_id=%s" % (process_id, self.resource_id))
            else:
                # TODO: Check if there is a service for this type of resource
                log.debug(self.resource_id % "No agent process found for resource_id %s")
                raise iex.NotFound("No agent process found for resource_id %s" % self.resource_id)

        assert "name" in kwargs, "Name argument for agent target not set"
        SimpleResourceAgentProcessClient.__init__(self, *args, **kwargs)
dataset/ETHPy150Open ooici/pyon/pyon/agent/simple_agent.py/SimpleResourceAgentClient.__init__/swapped operands of `%`