def get_base_encoding(encoding: str) -> str:
    """
    Check which base encoding is needed to create required encoding.

    ! Adapt if new encoding is added !

    :param encoding: required encoding

    :return: base encoding
    """
    if encoding in ('raw', '012', 'onehot', '101'):
        return 'raw'
    else:
        raise Exception('No valid encoding. Can not determine base encoding')