from typing import Any


class AbstractEncoder:
    def encode(self, data: Any) -> bytes:
        raise NotImplementedError('abstract encode called')

    def decode(self, payload: bytes) -> Any:
        raise NotImplementedError('abstract decode called')
