code: def _get_foreach_kernels_supported_devices() -> List[str]:
      r"""Return the device type list that supports foreach kernels."""
      return ["cuda", "xpu", torch._C._get_privateuse1_backend_name()]
  
file_path: pytorch/torch/utils/_foreach_utils.py
imports: from typing import List, Dict, Tuple, Optional
  import torch
  from torch import Tensor
  from torch.autograd.grad_mode import no_grad
  from typing_extensions import TypeAlias
label_desc: Use image node_id 1 for calling a global function with example usage: _get_foreach_kernels_supported_devices() and returns: list