code: def href_local_target(el: etree.Element) -> Optional[str]:
      if XLINK_HREF in el.attrib:
          href = el.attrib[XLINK_HREF]
          if href.startswith("#") and len(href) > 1:
              return href[1:]  # drop the leading #
      return None
  
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 8 for calling a global function with example usage: href_local_target(el) and returns: None, href