code: def run_fn_on_actors(
      actors: List[ray.actor.ActorHandle], fn: Callable, *args, **kwargs
  ):
      futures = []
      for actor in actors:
          futures.append(actor.run_fn.remote(fn, *args, **kwargs))
      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 8 for calling a global function with example usage: run_fn_on_actors(actors, fn) and returns: ray