<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_hardware(self, expected):
 """Make sure the hardware version is what we expect. This convenience function is meant for ensuring that we are talking to a tile that has the correct hardware version. Args: expected (str):
 The expected hardware string that is compared against what is reported by the hardware_version RPC. Returns: bool: true if the hardware is the expected version, false otherwise """


        if len(expected) < 10:
            expected += '\0'*(10 - len(expected))

        err, = self.rpc(0x00, 0x03, expected, result_format="L")
        if err == 0:
            return True

        return False