code: def check(self, status: ClusterStatus):
      healthy_nodes = len(status.active_nodes) + len(status.idle_nodes)
      if healthy_nodes != self.count:
          raise CheckFailure(
              f"Expected {self.count} nodes, got {healthy_nodes}"
          )
  
imports: import abc
  import operator
  from abc import abstractmethod
  from typing import Dict, List
  import ray
  from ray.autoscaler.v2.schema import ClusterStatus, ResourceUsage
  from ray.autoscaler.v2.sdk import get_cluster_status
  from ray.core.generated import autoscaler_pb2
  from ray.core.generated.instance_manager_pb2 import Instance
label_desc: Use image node_id 2 for calling the NodeCountCheck obj's underlying member method code with example usage: obj.check(status) without return types