code: def _validate(cls, message):
          
          valid = False
          if(('name' in message and 'value' in message) or
                  ('id' in message and 'data' in message)):
              valid = True
          return valid
docs: Confirm the validitiy of a given dict as an OpenXC message.
  
          Returns:
              ``True`` if the message contains at least a ``name`` and ``value``.