def ids_of_terminated_clusters(self):
        return sorted(
            str(cluster_id)
            for cluster_id, cluster in self.mock_emr_clusters.items()
            if cluster_id != 'j-DONE' and
               cluster.status.state in (
                    'TERMINATING', 'TERMINATED', 'TERMINATED_WITH_ERRORS'))
dataset/ETHPy150Open Yelp/mrjob/tests/tools/emr/test_terminate_idle_clusters.py/ClusterTerminationTestCase.ids_of_terminated_clusters/original