code: def create_actors_with_options(
      num_actors: int,
      resources: Dict[str, Union[float, int]],
      runtime_env: Dict[str, Any] = None,
  ) -> List[ray.actor.ActorHandle]:
      num_cpus = resources.pop("CPU", 1)
      num_gpus = resources.pop("GPU", 0)
  
      options = {
          "num_cpus": num_cpus,
          "num_gpus": num_gpus,
          "resources": resources,
      }
  
      if runtime_env:
          options["runtime_env"] = runtime_env
  
      return [
          CommandRunner.options(**options).remote()
          for _ in range(num_actors)
      ]
  
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 6 for calling a global function with example usage: create_actors_with_options(num_actors, resources, runtime_env) and returns: unknown