def task(self, id, scheduled=False):
        if isinstance(id, Task):
            scheduled = id.scheduled
            id = id.id
        if not scheduled:
            url = id % "tasks/%s"
        else:
            url = "schedules/%s" % id
        resp = self.client.get(url)
        raw_task = resp["body"]
        return Task(raw_task)
dataset/ETHPy150Open iron-io/iron_worker_python/iron_worker.py/IronWorker.task/swapped operands of `%`