def METHOD_NAME(aggregator, instance):
    check = SonarrCheck('sonarr', {}, [instance])
    episodes = [
        {
            "seriesId": 1,
            "tvdbId": 1234,
            "episodeFileId": 0,
            "seasonNumber": 0,
            "episodeNumber": 4,
            "title": "A title",
            "hasFile": False,
            "monitored": False,
            "id": 4,
        },
        {
            "seriesId": 1,
            "tvdbId": 4321,
            "episodeFileId": 0,
            "seasonNumber": 0,
            "episodeNumber": 2,
            "title": "Another title",
            "hasFile": False,
            "monitored": False,
            "id": 2,
        },
        {
            "seriesId": 1,
            "tvdbId": 5678,
            "episodeFileId": 0,
            "seasonNumber": 0,
            "episodeNumber": 2,
            "title": "Another title",
            "overview": "Desc",
            "hasFile": True,
            "monitored": True,
            "id": 3,
        },
    ]
    metrics = check._init_metrics()
    check._process_episodes(episodes, metrics)
    assert metrics["episodes.monitored"] == 1
    assert metrics["episodes.unmonitored"] == 2