def METHOD_NAME(self) -> None:
    if self.handle is not None:
        # reload serial, because device.wipe() can reset it
        self.serial = self.handle.get_serial_number_string()
        self.handle.METHOD_NAME()
    self.handle = None