import base64


def decode_to_bytes(data: str) -> bytes:
    """
    Decodes a base64-encoded string and returns a sequence of bytes.
    :param data: The base64-encoded string to decode
    :return: decoded bytes
    """
    data_bytes = bytes(data, "utf-8")
    data_decoded_bytes = base64.b64decode(data_bytes)
    return data_decoded_bytes