def _CheckInstanceRunning(self, instance_name):
    instance_info = self._GetApi().GetInstance(instance_name)
    if not instance_info:
      logging.info('Instance %s has not yet started', instance_name)
      return False
    instance_status = instance_info.get('status', None)
    logging.info('Instance %s status: %s', instance_name, instance_status)
    return True if instance_status == 'RUNNING' else False
:type nums: List[int]
dataset/ETHPy150Open GoogleCloudPlatform/solutions-google-compute-engine-cluster-for-hadoop/gce_cluster.py/GceCluster._CheckInstanceRunning--crossover with--dataset/ETHPy150Open kamyu104/LeetCode/Python/count-of-range-sum.py/Solution.countRangeSum