code: def _pi_id(self):
          
          # Check for Pi boards:
          pi_rev_code = self._pi_rev_code()
          if pi_rev_code:
              for model, codes in _PI_REV_CODES.items():
                  if pi_rev_code in codes:
                      return model
          return None
docs: Try to detect id of a Raspberry Pi.