code: def xpath(path):
      # compile XPath upfront, caching result to reuse on multiple elements
      return etree.XPath(path, namespaces=NAMESPACES)
  
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 1 for calling a global function with example usage: xpath(path) and returns: etree