def check_depreciate(self):
        if (self.purchase_date and self.endlife_value is not None and self.initial_value and self.lifetime):
            return True
        else:
            return False
Get the device id of the array
dataset/ETHPy150Open treeio/treeio/treeio/finance/models.py/Asset.check_depreciate--crossover with--dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/library.py/get_device_id