 -&gt; BoltRequest:
    body = event.get(&#34;body&#34;, &#34;&#34;)
    if event[&#34;isBase64Encoded&#34;]:
        body = base64.b64decode(body).decode(&#34;utf-8&#34;)
    cookies: Sequence[str] = event.get(&#34;cookies&#34;, [])
    if cookies is None or len(cookies) == 0:
        # In the case of format v1
        multiValueHeaders = event.get(&#34;multiValueHeaders&#34;, {})
        cookies = multiValueHeaders.get(&#34;cookie&#34;, [])
        if len(cookies) == 0:
            # Try using uppercase
 