def METHOD_NAME(value: str) -> Optional[Dict]:
    binary = value.encode('utf-8')
    # b'==' is added to avoid incorrect padding
    base64_bytes = base64.b64decode(binary + b'==')
    return bdecode_compat(base64_bytes)