code: def map_ips_to_gpus(ips: List[str], gpus: List[List[int]]):
      assert len(ips) == len(gpus)
  
      map = defaultdict(set)
      for ip, gpu in zip(ips, gpus):
          map[ip].update(set(gpu))
      return {ip: sorted(gpus) for ip, gpus in map.items()}
  
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 11 for calling a global function with example usage: map_ips_to_gpus(ips, gpus) and returns: unknown