code: def __init__(
      self,
      name: str,
      uuid: str,
      mig_devices: List["DeviceHandleMock"] = None,
      **kwargs,
  ):
      super().__init__()
      self["name"] = name
      self["uuid"] = uuid
      if mig_devices is not None:
          self["mig_devices"] = mig_devices
      self.update(kwargs)
  
imports: import pytest
  from typing import List
  from unittest.mock import patch
  import ray._private.thirdparty.pynvml
label_desc: Use image node_id 1 to create a new DeviceHandleMock object from inherited base classes: dict with example: obj = DeviceHandleMock(name, uuid, mig_devices)