
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def run_installation(self, code: str) -&gt; Optional[Installation]:
    try:
        oauth_response: SlackResponse = self.client.oauth_v2_access(
            code=code,
            client_id=self.settings.client_id,
            client_secret=self.settings.client_secret,
            redirect_uri=self.settings.redirect_uri,  # can be None
        )
        installed_enterprise: Dict[str, str] = oauth_respo