code: def get_available_resources(
      usages: List[ResourceUsage],
  ) -> Dict[str, float]:
      """Returns a map of resource name to available resource."""
      return {r.resource_name: r.total - r.used for r in usages}
  
imports: import abc
  import operator
  from abc import abstractmethod
  from typing import Dict, List
  import ray
  from ray.autoscaler.v2.schema import ClusterStatus, ResourceUsage
  from ray.autoscaler.v2.sdk import get_cluster_status
  from ray.core.generated import autoscaler_pb2
  from ray.core.generated.instance_manager_pb2 import Instance
label_desc: Use image node_id 5 for calling a global function with example usage: get_available_resources(usages) and returns: unknown