def METHOD_NAME(self):
    if not self._trailing_set:
        raise AttributeError(
            "The stream has not been fully read yet, the trailing headers are not available."
        )
    return self._trailing_headers