code: def _add_note(self, note: str) -> None:
      # Loose backport of PEP 678 until we only support Python 3.11+, used for
      # adding additional context to errors.
      # TODO: Replace with https://docs.python.org/3.11/library/exceptions.html#BaseException.add_note
      (message, *rest) = self.args
      self.args = ((message + "\n" + note), *rest)
  
file_path: catboost/contrib/python/fonttools/fontTools/ufoLib/errors.py
imports: from __future__ import annotations
label_desc: Use image node_id 1 for calling the GlifLibError obj's underlying member method code with example usage: obj._add_note(note) without return types