def _get_instances_with_service(instances, service):
    return [instance for instance in instances
            if service in instance.node_group.node_processes]
dataset/ETHPy150Open openstack/sahara/sahara/plugins/vanilla/hadoop2/scaling.py/_get_instances_with_service/original