class_docstr: Abstract class to represents a color map.
class_docstr_tok: ["Abstract","class","to","represents","a","color","map","."]
code: def __len__(self) -> int:
      return self.colors.shape[-1]
  
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 2 for calling the ColorMap obj's underlying member method code with example usage: obj.__len__() and returns: self