code: def group_elements_by_id(
      tree: etree.Element,
  ) -> Dict[str, etree.Element]:
      # select all svg elements with 'id' attribute no matter where they are
      # including the root element itself:
      # https://github.com/fonttools/fonttools/issues/2548
      return {el.attrib["id"]: el for el in xpath("//svg:*[@id]")(tree)}
  
file_path: catboost/contrib/python/fonttools/fontTools/subset/svg.py
imports: from __future__ import annotations
  import re
  from functools import lru_cache
  from itertools import chain, count
  from typing import Dict, Iterable, Iterator, List, Optional, Set, Tuple
  from fontTools import ttLib
  from fontTools.subset.util import _add_method
  from fontTools.ttLib.tables.S_V_G_ import SVGDocument
label_desc: Use image node_id 2 for calling a global function with example usage: group_elements_by_id(tree) and returns: unknown