code: def run_commands_on_actors(
      actors: List[ray.actor.ActorHandle], cmds: List[List[str]]
  ):
      assert len(actors) == len(cmds)
      futures = []
      for actor, cmd in zip(actors, cmds):
          futures.append(actor.run_command.remote(cmd))
      return ray.get(futures)
  
imports: import os
  import socket
  import subprocess
  from collections import defaultdict
  from contextlib import closing
  from pathlib import Path
  from ray.air.util.node import _force_on_node
  import ray
  from typing import Any, List, Dict, Union, Callable
label_desc: Use image node_id 7 for calling a global function with example usage: run_commands_on_actors(actors, cmds) and returns: ray