def build_message(
message: Union[Sequence["SendableMessage"], "SendableMessage"],
*,
correlation_id: str,
reply_to: str = "",
headers: Optional["AnyDict"] = None,
) -> bytes:
data = RawMessage.encode(
message=message,
reply_to=reply_to,
headers=headers,
correlation_id=correlation_id,
)
return data