code: def machine(self):
          
          machine_id = self.safe_data['machine-id']
          if machine_id:
              return self.model.machines.get(machine_id, None)
          else:
              return None
docs: Get the machine object for this unit.