class_docstr: Base class for any style transformation.
class_docstr_tok: ["Base","class","for","any","style","transformation","."]
docstr: When this changes, the cache should be invalidated.
docstr_tok: ["When","this","changes",",","the","cache","should","be","invalidated","."]
code: def invalidation_hash(self) -> Hashable:
      """
      When this changes, the cache should be invalidated.
      """
      return f"{self.__class__.__name__}-{id(self)}"
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from colorsys import hls_to_rgb, rgb_to_hls
  from typing import Callable, Hashable, Sequence
  from prompt_toolkit.cache import memoized
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.utils import AnyFloat, to_float, to_str
  from .base import ANSI_COLOR_NAMES, Attrs
  from .style import parse_color
label_desc: Use image node_id 2 for calling the StyleTransformation obj's underlying member method code with example usage: obj.invalidation_hash() and returns: self, str, id