def METHOD_NAME(self):
    if self.category == PendingDeprecationWarning:
        message_format = "{} will be deprecated"
    else:
        message_format = "{} is deprecated"
    if self.message is not None:
        message_format += ": {}.".format(self.message)
    else:
        message_format += "."
    if self.version is not None:
        message_format += (
            " It is not guaranteed to be in service in vers. {}".format(
                self.version
            )
        )
    return message_format