docstr: :param device_type: type of device (CPU/GPU)
  :param index: index of device (only used if device type is GPU)
docstr_tok: [":","param","device_type",":","type","of","device","(","CPU\/GPU",")",":","param","index",":","index","of","device","(","only","used","if","device","type","is","GPU",")"]
code: def __init__(self, device_type: DeviceType, index: int = 0):
      """
      :param device_type: type of device (CPU/GPU)
      :param index: index of device (only used if device type is GPU)
      """
      self._device_type = device_type
      self._index = index
  
imports: import inspect
  import json
  import os
  import sys
  import types
  from collections import OrderedDict
  from enum import Enum
  from typing import Dict, List, Union
  from rl_coach.core_types import TrainingSteps, EnvironmentSteps, GradientClippingMethod, RunPhase, SelectedPhaseOnlyDumpFilter, MaxDumpFilter
  from rl_coach.filters.filter import NoInputFilter
  from rl_coach.logger import screen
label_desc: Use image node_id 1 to create a new Device object from inherited base classes: object with example: obj = Device(device_type, index)