def METHOD_NAME(monkeypatch):
    def _make_cache_params(integration_id, organization_id, team_name=None, team_id=None):
        team_name = team_name or "No team"
        team_id = team_id or "no_team"
        metric_alert_groups_total_key = get_metric_alert_groups_total_key(organization_id)
        metric_alert_groups_response_time_key = get_metric_alert_groups_response_time_key(organization_id)
        def cache_get(key, *args, **kwargs):
            metrics_data = {
                metric_alert_groups_response_time_key: {
                    integration_id: {
                        "integration_name": METRICS_TEST_INTEGRATION_NAME,
                        "team_name": team_name,
                        "team_id": team_id,
                        "org_id": METRICS_TEST_ORG_ID,
                        "slug": METRICS_TEST_INSTANCE_SLUG,
                        "id": METRICS_TEST_INSTANCE_ID,
                        "response_time": [],
                    }
                },
                metric_alert_groups_total_key: {
                    integration_id: {
                        "integration_name": METRICS_TEST_INTEGRATION_NAME,
                        "team_name": team_name,
                        "team_id": team_id,
                        "org_id": METRICS_TEST_ORG_ID,
                        "slug": METRICS_TEST_INSTANCE_SLUG,
                        "id": METRICS_TEST_INSTANCE_ID,
                        "firing": 0,
                        "acknowledged": 0,
                        "silenced": 0,
                        "resolved": 0,
                    }
                },
            }
            return metrics_data.get(key, {})
        return cache_get
    return _make_cache_params