def MatchQuality(cls, record_data, record_count=1):
        """Check how well this record matches the given binary data.

        This function will only be called if the record matches the type code
        given by calling MatchType() and this functon should check how well
        this record matches and return a quality score between 0 and 100, with
        higher quality matches having higher scores.  The default value should
        be MatchQuality.GenericMatch which is 50.  If this record does not
        match at all, it should return MatchQuality.NoMatch.

        Many times, only a single record type will match a given binary record
        but there are times when multiple different logical records produce
        the same type of record in a script, such as set_version and
        set_userkey both producing a call_rpc record with different RPC
        values.  The MatchQuality method is used to allow for rich decoding
        of such scripts back to the best possible record that created them.

        Args:
            record_data (bytearay): The raw record that we should check for
                a match.
            record_count (int): The number of binary records that are included
                in record_data.

        Returns:
            int: The match quality between 0 and 100.  You should use the
                constants defined in MatchQuality as much as possible.
        """

        if record_count == 1:
            cmd, address, _resp_length, _payload = SendErrorCheckingRPCRecord._parse_rpc_info(record_data)

            if cmd == cls.BEGIN_CONFIG_RPC and address == 8:
                return MatchQuality.DeferMatch

            return MatchQuality.NoMatch

        # To see if this is a set_config variable record set, we need to decode all of
        # the records and make sure each is an error checking rpc with the right rpc id
        try:
            rpcs = SendErrorCheckingRPCRecord.parse_multiple_rpcs(record_data)

            push_commands = rpcs[1:-1]

            for cmd in push_commands:
                cmd_id, addr = cmd[:2]
                if cmd_id != cls.PUSH_CONFIG_RPC or addr != 8:
                    return MatchQuality.NoMatch

            last_cmd, last_addr = rpcs[-1][:2]
            if last_cmd == cls.END_CONFIG_RPC and last_addr == 8:
                return MatchQuality.PerfectMatch
        except ArgumentError:
            return MatchQuality.NoMatch

        return MatchQuality.DeferMatch