code: def _list_color_to_tensor(
      colors: List[RGBColor],
      dtype: Optional[torch.dtype],
      device: Optional[torch.device],
  ) -> Tensor:
      return tensor(list(colors), dtype=dtype, device=device).T
  
file_path: kornia/kornia/color/colormap.py
imports: from abc import ABC
  from typing import List, Optional
  import torch
  from torch.nn.functional import interpolate
  from kornia.core import Module, Tensor, tensor
  from kornia.core.check import KORNIA_CHECK_IS_GRAY
label_desc: Use image node_id 1 for calling a global function with example usage: _list_color_to_tensor(colors, dtype, device) and returns: tensor