code: def format_field(self, value: object, format_spec: str) -> str:
      return html_escape(format(value, format_spec))
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/formatted_text/html.py
imports: from __future__ import annotations
  import xml.dom.minidom
  from string import Formatter
  from typing import Any
  from .base import FormattedText, StyleAndTextTuples
label_desc: Use image node_id 1 for calling the HTMLFormatter obj's underlying member method code with example usage: obj.format_field(value, format_spec) and returns: html_escape