code: def get_all_ray_worker_processes():
      processes = [
          p.info["cmdline"]
          for p in psutil.process_iter(attrs=["pid", "name", "cmdline"])
      ]
  
      result = []
      for p in processes:
          if p is not None and len(p) > 0 and "ray::" in p[0]:
              result.append(p[0])
      return result
  
imports: import sys
  import time
  import platform
  import os
  import signal
  import multiprocessing
  import pytest
  import ray
  import psutil
  from ray._private.test_utils import wait_for_condition, run_string_as_driver_nonblocking
  from ray.util.state import get_worker, list_tasks
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 1 for calling a global function with example usage: get_all_ray_worker_processes() and returns: result