code: def check_num_nodes_and_spawn_tasks():
      node_ids.update(
          ray.get([get_node_id.remote() for _ in range(10)])
      )
      return len(node_ids) >= NUM_NODES
  
imports: import ray
  import torch
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 3 for calling a global function with example usage: check_num_nodes_and_spawn_tasks() and returns: unknown