code: def _response_matches_request(self, response):
          
          # Accept success/failure command responses
          if super(DiagnosticResponseReceiver,
                  self)._response_matches_request(response):
              return True
  
          if ('bus' in self.diagnostic_request and
                  response.get('bus', None) != self.diagnostic_request['bus']):
              return False
          if (self.diagnostic_request['id'] != 0x7df and
                  response.get('id', None) != self.diagnostic_request['id']):
              return False
  
          if (response.get('success', True) and
                  response.get('pid', None) !=
                      self.diagnostic_request.get('pid', None)):
              return False
  
          return response.get('mode', None) == self.diagnostic_request['mode']
docs: Return true if the response is to a diagnostic request, and the bus,
          id, mode match. If the request was successful, the PID echo is also
          checked.