<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def probe_plate(self) -> str:
        '''
        Probes for the deck plate and calculates the plate distance
        from home.
        To be used for calibrating MagDeck
        '''
        self.run_flag.wait()

        try:
            self._send_command(GCODES['PROBE_PLATE'])
        except (MagDeckError, SerialException, SerialNoResponse) as e:
            return str(e)
        return ''