code: def format_line(self, line: Line) -> dict:
      return dict(
          is_current=line.is_current,
          lineno=line.lineno,
          text=line.render(
              pygmented=self.pygmented,
              escape_html=self.html,
              strip_leading_indent=self.strip_leading_indent,
          ),
      )
  
imports: import inspect
  import logging
  import sys
  import traceback
  from collections import Counter
  from html import escape
  from types import FrameType, TracebackType
  from typing import Union, Iterable, List
  from stack_data import style_with_executing_node, Options, Line, FrameInfo, Variable, RepeatedFrames
  from stack_data.utils import some_str
label_desc: Use image node_id 9 for calling the Serializer obj's underlying member method code with example usage: obj.format_line(line) and returns: dict