def METHOD_NAME(bad_indices):
    if not settings.RUNNING_IN_CLOUD or not settings.ENGAGEMENTBOT_WEBHOOK:
        logger.info(
            "Some transcriptome indices did not have enough overlap with the previous run",
            bad_indices=bad_indices,
        )
        return
    requests.post(
        settings.ENGAGEMENTBOT_WEBHOOK,
        json={
            "attachments": [
                {
                    "fallback": "Transcriptome Index Test Failed",
                    "title": "Transcriptome Index Test Failed",
                    "color": "#db3b28",
                    "text": "Some transcriptome indices did not have enough overlap with the previous run",
                    "fields": [
                        {
                            "title": "Failing Indixes",
                            "value": ", ".join(f"{o.name} {t}" for o, t in bad_indices),
                        }
                    ],
                    "footer": "Refine.bio",
                    "footer_icon": "https://s3.amazonaws.com/refinebio-email/logo-2x.png",
                }
            ],
        },
        headers={"Content-Type": "application/json"},
        timeout=10,
    )