code: def set_excluded_devices(excluded_devices):
      """
      Allows to specify a list of excluded devices that cannot be used as
      globally default (neither auto-selected nor explicitly specified by
      :func:`try_set_default_device`). For example, to avoid auto-selecting the
      CPU, invoke ``set_excluded_devices([cpu()])``. However, after the default
      device has been selected and frozen (by a call to
      :func:`use_default_device`), invoking this methods has no effect, it
      becomes essentially a no-op.
  
      Args:
          excluded_devices (list of :class:`~cntk.device.DeviceDescriptor`): a
           list of device descriptors to exclude.
      """
      cntk_py.DeviceDescriptor.set_excluded_devices(excluded_devices)
  
file_path: CNTK/bindings/python/cntk/device.py
imports: from enum import Enum, unique
  from .None import cntk_py
  from cntk.internal import typemap
label_desc: Use image node_id 6 for calling a global function with example usage: set_excluded_devices(excluded_devices) without return types