code: def __init__(self, type: DeviceType, idx: int = 0):
      self.type = type
      self.idx = idx
  
imports: import subprocess
  from dataclasses import dataclass
  from enum import Enum
  from functools import cached_property
  from typing import Optional, Any, Union, Tuple, List, Dict
  import numpy
  from nebullvm.optional_modules.tensorflow import tensorflow
  from nebullvm.optional_modules.torch import torch
label_desc: Use image node_id 1 to create a new Device object  with example: obj = Device(type, idx)