code: def num_global_devices(device_type: str) -> int:
      """Returns the number of devices of device_type in this DTensor cluster."""
      return num_local_devices(device_type) * num_clients()
  
imports: import os
  from typing import List, Optional, Union
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import device
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling a global function with example usage: num_global_devices(device_type) and returns: unknown