code: def get_worker_node_ips(
      cluster_config: Union[dict, str]
  ) -> List[str]:
      """Returns worker node IPs for given configuration file.
  
      Args:
          cluster_config (Union[str, dict]): Either the config dict of the
              cluster, or a path pointing to a file containing the config.
  
      Returns:
          List of worker node ip addresses.
  
      Raises:
          RuntimeError if the cluster is not found.
      """
      with _as_config_file(cluster_config) as config_file:
          return commands.get_worker_node_ips(config_file)
  
imports: import json
  import os
  import tempfile
  from contextlib import contextmanager
  from typing import Any, Callable, Dict, Iterator, List, Optional, Union
  from ray.autoscaler._private import commands
  from ray.autoscaler._private.cli_logger import cli_logger
  from ray.autoscaler._private.event_system import CreateClusterEvent
  from ray.autoscaler._private.event_system import global_event_system
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 6 for calling a global function with example usage: get_worker_node_ips(cluster_config) and returns: commands