<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _ParseBooleanValue(self, byte_stream):
 """Parses a boolean value. Args: byte_stream (bytes):
 byte stream. Returns: bool: boolean value. Raises: ParseError: when the boolean value cannot be parsed. """

    if byte_stream == b'\x00':
      return False

    if byte_stream == b'\x01':
      return True

    raise errors.ParseError('Unsupported boolean value.')