code: def format(  # noqa: A003
      self, message: str, style: Optional[str] = None, **kwargs
  ) -> str:
      from dvc.utils import colorize
  
      return colorize(message, **self.theme[style])
  
imports: from contextlib import contextmanager, nullcontext
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, Optional, Sequence, TextIO, Type, Union
  import colorama
  from dvc.utils.objects import cached_property
label_desc: Use image node_id 2 for calling the Formatter obj's underlying member method code with example usage: obj.format(message, style) and returns: colorize