code: def check_valid_rx_can_msg(result):
      
      return (result.value == ReturnCode.SUCCESSFUL) or (result.value > ReturnCode.WARNING)
docs: Checks if function :meth:`UcanServer.read_can_msg` returns a valid CAN message.
  
      :param ReturnCode result: Error code of the function.
      :return: True if a valid CAN messages was received, otherwise False.
      :rtype: bool