code: def iscomplete(rawmessage):
      
      if len(rawmessage) < 2:
          return False
  
      if rawmessage[0] != 0x02:
          raise ValueError('message does not start with 0x02')
  
      messageBuffer = bytearray()
      filler = bytearray(30)
      messageBuffer.extend(rawmessage)
      messageBuffer.extend(filler)
  
      msg = _get_msg_class(rawmessage[1])
  
      if hasattr(msg, 'receivedSize') and msg.receivedSize:
          expectedSize = msg.receivedSize
      else:
          _LOGGER.error('Unable to find a receivedSize for code 0x%x',
                        rawmessage[1])
          return ValueError
  
      is_expected_size = False
      if len(rawmessage) >= expectedSize:
          is_expected_size = True
  
      return is_expected_size
docs: Test if the raw message is a complete message.