async def leave(self):
is_group_conversation = (self._conversation.type ==<EOL>hangouts_pb2.CONVERSATION_TYPE_GROUP)<EOL>try:<EOL><INDENT>if is_group_conversation:<EOL><INDENT>await self._client.remove_user(<EOL>hangouts_pb2.RemoveUserRequest(<EOL>request_header=self._client.get_request_header(),<EOL>event_request_header=self._get_event_request_header(),<EOL>)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>await self._client.delete_conversation(<EOL>hangouts_pb2.DeleteConversationRequest(<EOL>request_header=self._client.get_request_header(),<EOL>conversation_id=hangouts_pb2.ConversationId(<EOL>id=self.id_<EOL>),<EOL>delete_upper_bound_timestamp=parsers.to_timestamp(<EOL>datetime.datetime.now(tz=datetime.timezone.utc)<EOL>)<EOL>)<EOL>)<EOL><DEDENT><DEDENT>except exceptions.NetworkError as e:<EOL><INDENT>logger.warning('<STR_LIT>'.format(e))<EOL>raise<EOL><DEDENT>
Leave this conversation.

        Raises:
            .NetworkError: If conversation cannot be left.