def __str__(self):
        if self.name is not None:
            return "%s Code Package" % self.name
        elif self.id is not None:
            return "Code Package #%s" % self.id
        else:
            return "IronWorker Code Package"
dataset/ETHPy150Open iron-io/iron_worker_python/iron_worker.py/CodePackage.__str__/original