code: def device_type_to_str(queue):
      if queue is None:
          return "cpu"
  
      from dpctl import device_type
  
      if queue.sycl_device.device_type == device_type.cpu:
          return "cpu"
      if queue.sycl_device.device_type == device_type.gpu:
          return "gpu"
      return "unknown"
  
file_path: scikit-learn-intelex/tests/daal4py/sycl/sklearn_sycl.py
imports: import numpy
  from sklearn.cluster import DBSCAN, KMeans
  from sklearn.datasets import load_iris
  from sklearn.linear_model import LinearRegression, LogisticRegression
label_desc: Use image node_id 8 for calling a global function with example usage: device_type_to_str(queue) and returns: str, str, str, str