async def METHOD_NAME(self, device, args, arc_iface):
    idcode, device = await arc_iface.identify()
    if device is None:
        raise GlasgowAppletError("cannot operate on unknown device with IDCODE=%08x"
                                 % idcode.to_int())
    self.logger.info("IDCODE=%08x device=%s rev=%d",
                     idcode.to_int(), device.name, idcode.version)