def METHOD_NAME(
    integration_id: int, extra: Mapping[str, Any] | None = None
) -> None:
    """
    Given the id of an Integration or an RpcIntegration, get the associated org(s) and bind that
    data to the scope.
    Note: An `Integration` is an instance of given provider's integration, tied to a single entity
    on the provider's end (for example, an instance of the GitHub integration tied to a particular
    GitHub org, or an instance of the Slack integration tied to a particular Slack workspace), which
    can be shared by multiple orgs. Also, it doesn't matter whether the passed id comes from an
    Integration or an RpcIntegration object, because corresponding ones share the same id.
    """
    org_integrations = get_org_integrations(integration_id)
    if len(org_integrations) == 0:
        logger.warning(
            f"Can't bind org context - no orgs are associated with integration id={integration_id}.",
            extra=extra,
        )
        # When the `logger.warning` call above was `logger.error`, we saw that the `integration_id`
        # tag on the resulting event didn't match the `integration_id` value logged in the event's
        # message. Even though we've switched to `logger.warning` (and therefore no longer have a
        # sentry event to which to tie the data), we still want to be able track when this happens.
        # (With `add_to_scope=False`, we still log a warning - separate from the one above - on data
        # mismatch.)
        check_tag_for_scope_bleed("integration_id", integration_id, add_to_scope=False)
    elif len(org_integrations) == 1:
        org_integration = org_integrations[0]
        org = organization_service.get_organization_by_id(id=org_integration.organization_id)
        if org is not None:
            bind_organization_context(org.organization)
        else:
            logger.exception(
                f"Unable to call organization_service.get_organization_by_id with organization id={org_integration.organization_id}.",
                extra=extra,
            )
    else:
        org_ids = [org_integration.organization_id for org_integration in org_integrations]
        org_slugs = []
        if SiloMode.get_current_mode() == SiloMode.CONTROL:
            org_slugs = [
                org_mapping.slug
                for org_mapping in OrganizationMapping.objects.filter(organization_id__in=org_ids)
            ]
        else:
            orgs = Organization.objects.get_many_from_cache(
                [org_integration.organization_id for org_integration in org_integrations]
            )
            org_slugs = [org.slug for org in orgs]
        bind_ambiguous_org_context(org_slugs, f"integration (id={integration_id})")