code: def get_global_device_type():
      return GlobalSettings().device_type
  
imports: from cuml.internals.global_settings import GlobalSettings
  from cuml.internals.device_type import DeviceType
label_desc: Use image node_id 2 for calling a global function with example usage: get_global_device_type() and returns: GlobalSettings