code: def _check_unique(device_ids: List[int]) -> None:
      """Checks that the device_ids are unique.
  
      Args:
          device_ids: List of ints corresponding to GPUs indices
  
      Raises:
          MisconfigurationException:
              If ``device_ids`` of GPUs aren't unique
  
      """
      if len(device_ids) != len(set(device_ids)):
          raise MisconfigurationException(
              "Device ID's (GPU) must be unique."
          )
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/device_parser.py
imports: from typing import List, MutableSequence, Optional, Tuple, Union
  import torch
  from lightning.fabric.utilities.exceptions import MisconfigurationException
  from lightning.fabric.utilities.types import _DEVICE
label_desc: Use image node_id 7 for calling a global function with example usage: _check_unique(device_ids) without return types